Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix adding to empty attributes and duplicate request
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and CarlSchwan committed Aug 3, 2022
commit ef6e4fc52d7b870189624b7200681c70718d8983
3 changes: 1 addition & 2 deletions apps/files_sharing/src/components/SharingEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
},

/**
Expand Down
1 change: 1 addition & 0 deletions apps/files_sharing/src/models/Share.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down