From 8c690622a1fedcc61c2d13c07f9d97ce7f138e9e Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sat, 1 Apr 2023 23:58:50 +0200 Subject: [PATCH] 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 https://akkoma.dev/FoundKeyGang/FoundKey/issues/367 closes https://akkoma.dev/FoundKeyGang/FoundKey/issues/368 Changelog: Fixed --- packages/client/src/components/ui/pagination.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/ui/pagination.vue b/packages/client/src/components/ui/pagination.vue index 776794d32..3df9680ea 100644 --- a/packages/client/src/components/ui/pagination.vue +++ b/packages/client/src/components/ui/pagination.vue @@ -253,7 +253,7 @@ onDeactivated(() => { }); defineExpose({ - items, + items: $$(items), queue, backed, reload,