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 <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-02-27 15:37:45 +01:00
parent a083c0da40
commit 896f546b46
No known key found for this signature in database
GPG key ID: 7E849AE05218500F

View file

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