client: fix drive item updates inserting duplicates

The issue was that the detection in the drive component did not see the
contents of `paginationElem.items` because the ref was not properly
exposed. The value of the exposed property was a Proxy of an empty
array that was not a reference to the actual items array. Thus, when
checking if the item already exists or not, it never saw the item and
added it as if new.

closes FoundKeyGang/FoundKey#367
closes FoundKeyGang/FoundKey#368

Changelog: Fixed
This commit is contained in:
Johann150 2023-04-01 23:58:50 +02:00
parent 83fec649ea
commit 8c690622a1
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -253,7 +253,7 @@ onDeactivated(() => {
});
defineExpose({
items,
items: $$(items),
queue,
backed,
reload,