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

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
1 changed files with 1 additions and 1 deletions

View File

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