diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-06-08 23:01:48 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-07-28 16:53:23 +0200 |
commit | 2fb7a1feebb6b8a2c524c75e688cec00d4e3d50e (patch) | |
tree | aa4fb171219a75b87cb41275499500b8664f4d56 /apps/files_sharing/src/models/Share.js | |
parent | a11c6e7cc3eec18cba62ebd32e0b8653d97ed929 (diff) | |
download | nextcloud-server-2fb7a1feebb6b8a2c524c75e688cec00d4e3d50e.tar.gz nextcloud-server-2fb7a1feebb6b8a2c524c75e688cec00d4e3d50e.zip |
Fix adding to empty attributes and duplicate request
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/src/models/Share.js')
-rw-r--r-- | apps/files_sharing/src/models/Share.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 |