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
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:
parent
83fec649ea
commit
8c690622a1
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ onDeactivated(() => {
|
|||
});
|
||||
|
||||
defineExpose({
|
||||
items,
|
||||
items: $$(items),
|
||||
queue,
|
||||
backed,
|
||||
reload,
|
||||
|
|
Loading…
Reference in a new issue