Skip to content

Commit e623446

Browse files
chore(files_sharing): fix inconsistent trim() of shareWith
shareWith is below used _trimmed_ to index the field of the shareWith-to-type mapping; thus, create the key trimmed too. Why trimming is done here is questionable though. Refs: nextcloud#48925 Signed-off-by: Thomas Lehmann <[email protected]>
1 parent 818af87 commit e623446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/src/components/SharingInput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export default {
338338
} else { // filter out existing shares
339339
// creating an object of uid => type
340340
const sharesObj = this.shares.reduce((obj, elem) => {
341-
obj[elem.shareWith] = elem.type
341+
obj[elem.shareWith.trim()] = elem.type
342342
return obj
343343
}, {})
344344

0 commit comments

Comments
 (0)