fix(files): gracefully handle files:node:updated when not in store

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-07-04 16:33:22 +02:00
parent 31bfd980c3
commit 693bf9a475
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

View file

@ -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
}