mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
fix(ShareEntryLinkedList): Correctly propagate share data
`this.shares.unshift` mutates the share object for every component that uses the share mixin. Using the immutable approach changes the array reference which makes the mixin lose track of the share object. It would have been better to bubble up the share object but here we are :) Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
5bad00d37f
commit
9c68799fd2
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ export default {
|
|||
*/
|
||||
addShare(share, resolve) {
|
||||
// eslint-disable-next-line vue/no-mutating-props
|
||||
this.shares = [share, ...this.shares]
|
||||
this.shares.unshift(share)
|
||||
this.awaitForShare(share, resolve)
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue