Merge pull request #26533 from nextcloud/fix/add-share-resolve-default

Fix undefined error on add-share
This commit is contained in:
John Molakvoæ 2021-04-14 08:32:26 +02:00 committed by GitHub
commit 857a40b334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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) {