From 839714bfbbd43090cc318e03bf2727308c8e492e Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 27 Apr 2026 18:32:21 +0200 Subject: [PATCH] fix(files): keep reactivity when destructure store - resolves https://github.com/nextcloud/server/issues/59941 Signed-off-by: Ferdinand Thiessen --- apps/files/src/components/FileEntry.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index 53030040caa..ca9871b8c71 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -108,6 +108,7 @@ import { FileType, formatFileSize } from '@nextcloud/files' import { t } from '@nextcloud/l10n' import { useHotKey } from '@nextcloud/vue/composables/useHotKey' +import { storeToRefs } from 'pinia' import { defineComponent } from 'vue' import NcDateTime from '@nextcloud/vue/components/NcDateTime' import CustomElementRender from './CustomElementRender.vue' @@ -165,23 +166,26 @@ export default defineComponent({ fileId: currentRouteFileId, } = useRouteParameters() + const activeStore = useActiveStore() const { activeFolder, activeNode, activeView, - } = useActiveStore() + } = storeToRefs(activeStore) const actions = useFileActions() return { actions, - actionsMenuStore, activeFolder, activeNode, activeView, currentRouteFileId, - draggingStore, isNarrow, + + activeStore, + actionsMenuStore, + draggingStore, filesStore, renamingStore, selectionStore,