diff options
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) { |