Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-04-13 09:13:43 +0300
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2021-04-13 09:21:48 +0300
commit4b9991a4f2dc2a0818729794b1366653dc840a84 (patch)
tree3186c363299a8f8acdea986d6a2d8d0469764d3c /apps/files_sharing/src
parentbab06b9abb2a135dc9c3146e027c74c3c80c8593 (diff)
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.vue4
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) {