aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-07-04 16:33:22 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2025-07-07 10:52:21 +0200
commit693bf9a475cc919b2b61b5ca3d16e4ef40e39e06 (patch)
tree3a6135d1e4e5d64a39b04cf620add20c74a00f72
parent31bfd980c3df622df0650890690cc8cd54c9960b (diff)
downloadnextcloud-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.ts2
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
}