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:
authorJulius Härtl <jus@bitgrid.net>2022-06-09 00:01:48 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-08-03 14:24:20 +0300
commitef6e4fc52d7b870189624b7200681c70718d8983 (patch)
tree42b1ca17f7936b416eb7bd5edb65f0c253cf468d /apps/files_sharing/src
parent189b7b16247e18169ff755ee4a775e4976b70c26 (diff)
Fix adding to empty attributes and duplicate request
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue3
-rw-r--r--apps/files_sharing/src/models/Share.js1
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue
index 5ddb5715ff1..d8bf5bcccc9 100644
--- a/apps/files_sharing/src/components/SharingEntry.vue
+++ b/apps/files_sharing/src/components/SharingEntry.vue
@@ -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')
},
/**
diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js
index 0e96987c005..e6512c67f8c 100644
--- a/apps/files_sharing/src/models/Share.js
+++ b/apps/files_sharing/src/models/Share.js
@@ -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