mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 10:19:45 -05:00
Fix adding to empty attributes and duplicate request
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
a11c6e7cc3
commit
2fb7a1feeb
2 changed files with 2 additions and 2 deletions
|
|
@ -428,9 +428,8 @@ export default {
|
|||
this.share.permissions = permissions
|
||||
if (this.share.hasDownloadPermission !== isDownloadChecked) {
|
||||
this.share.hasDownloadPermission = isDownloadChecked
|
||||
this.queueUpdate('attributes')
|
||||
}
|
||||
this.queueUpdate('permissions')
|
||||
this.queueUpdate('permissions', 'attributes')
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ export default class Share {
|
|||
console.warn('Could not parse share attributes returned by server: "' + ocsData.attributes + '"')
|
||||
}
|
||||
}
|
||||
ocsData.attributes = ocsData.attributes ?? []
|
||||
|
||||
// store state
|
||||
this._share = ocsData
|
||||
|
|
|
|||
Loading…
Reference in a new issue