From b48ad9d1b40b3f8591e7f46346c875a037bd91c2 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 27 Feb 2026 15:37:45 +0100 Subject: [PATCH] fix(files): correctly handle nodes with snowflake ids We introduced `id` instead of `fileid` to be always of type `string` to allow snow flake ids. So we need to check the new attribute instead of the legacy one. Signed-off-by: Ferdinand Thiessen --- apps/files/src/store/files.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/src/store/files.ts b/apps/files/src/store/files.ts index f43eae48d0267..107a5cdfdd9e8 100644 --- a/apps/files/src/store/files.ts +++ b/apps/files/src/store/files.ts @@ -103,8 +103,8 @@ export function useFilesStore(...args) { updateNodes(nodes: Node[]) { // Update the store all at once const files = nodes.reduce((acc, node) => { - if (!node.fileid) { - logger.error('Trying to update/set a node without fileid', { node }) + if (!node.id) { + logger.error('Trying to update/set a node without id', { node }) return acc }