client: fix drive item updates inserting duplicates
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

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 #367
closes #368

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

View file

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