diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-04-14 08:32:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 08:32:26 +0200 |
commit | 857a40b33428e36321671359eb82d9a6a5e9ef46 (patch) | |
tree | 14e154fb3bc9a21b4521c62337db813b49aa31a8 /apps/files_sharing/src | |
parent | 7081c63d093761df353f71542e5cca3cb1d71072 (diff) | |
parent | 4b9991a4f2dc2a0818729794b1366653dc840a84 (diff) | |
download | nextcloud-server-857a40b33428e36321671359eb82d9a6a5e9ef46.tar.gz nextcloud-server-857a40b33428e36321671359eb82d9a6a5e9ef46.zip |
Merge pull request #26533 from nextcloud/fix/add-share-resolve-default
Fix undefined error on add-share
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) { |