From 4b9991a4f2dc2a0818729794b1366653dc840a84 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 13 Apr 2021 08:13:43 +0200 Subject: Fix undefined error on add-share MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) Signed-off-by: npmbuildbot-nextcloud[bot] --- apps/files_sharing/src/views/SharingTab.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_sharing/src') diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index 8a8d6ecf46a..a7f71d27aca 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -301,9 +301,9 @@ export default { * and return the newly created share component * * @param {Share} share the share to add to the array - * @param {Function} resolve a function to run after the share is added and its component initialized + * @param {Function} [resolve] a function to run after the share is added and its component initialized */ - addShare(share, resolve) { + addShare(share, resolve = () => {}) { // only catching share type MAIL as link shares are added differently // meaning: not from the ShareInput if (share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL) { -- cgit v1.2.3