diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-04-13 08:13:43 +0200 |
---|---|---|
committer | npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com> | 2021-04-13 06:21:48 +0000 |
commit | 4b9991a4f2dc2a0818729794b1366653dc840a84 (patch) | |
tree | 3186c363299a8f8acdea986d6a2d8d0469764d3c /apps/files_sharing/src | |
parent | bab06b9abb2a135dc9c3146e027c74c3c80c8593 (diff) | |
download | nextcloud-server-4b9991a4f2dc2a0818729794b1366653dc840a84.tar.gz nextcloud-server-4b9991a4f2dc2a0818729794b1366653dc840a84.zip |
Fix undefined error on add-share
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/views/SharingTab.vue | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |