diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-07-04 16:33:22 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-07-07 10:52:21 +0200 |
commit | 693bf9a475cc919b2b61b5ca3d16e4ef40e39e06 (patch) | |
tree | 3a6135d1e4e5d64a39b04cf620add20c74a00f72 | |
parent | 31bfd980c3df622df0650890690cc8cd54c9960b (diff) | |
download | nextcloud-server-693bf9a475cc919b2b61b5ca3d16e4ef40e39e06.tar.gz nextcloud-server-693bf9a475cc919b2b61b5ca3d16e4ef40e39e06.zip |
fix(files): gracefully handle `files:node:updated` when not in store
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | apps/files/src/store/files.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |