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:
fenn-cs 2024-06-12 16:09:07 +01:00
parent 5bad00d37f
commit 9c68799fd2

View file

@ -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)
},