From 693bf9a475cc919b2b61b5ca3d16e4ef40e39e06 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 4 Jul 2025 16:33:22 +0200 Subject: [PATCH] fix(files): gracefully handle `files:node:updated` when not in store Signed-off-by: Ferdinand Thiessen --- apps/files/src/store/files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/src/store/files.ts b/apps/files/src/store/files.ts index 3591832d0c4..0bcf4ce9350 100644 --- a/apps/files/src/store/files.ts +++ b/apps/files/src/store/files.ts @@ -154,7 +154,7 @@ export const useFilesStore = function(...args) { } // If we have only one node with the file ID, we can update it directly - if (node.source === nodes[0].source) { + if (nodes.length === 1 && node.source === nodes[0].source) { this.updateNodes([node]) return }