From cae00d2e965931efeb6ca5386d4dd2cff9f7dc62 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Fri, 21 Apr 2023 15:41:28 +0200 Subject: fix(files): paths store reactivity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/src/store/files.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files/src/store/files.ts') diff --git a/apps/files/src/store/files.ts b/apps/files/src/store/files.ts index ea516a886d9..bd7d3202dd9 100644 --- a/apps/files/src/store/files.ts +++ b/apps/files/src/store/files.ts @@ -59,11 +59,11 @@ export const useFilesStore = function() { updateNodes(nodes: Node[]) { // Update the store all at once const files = nodes.reduce((acc, node) => { - if (!node.attributes.fileid) { + if (!node.fileid) { logger.warn('Trying to update/set a node without fileid', node) return acc } - acc[node.attributes.fileid] = node + acc[node.fileid] = node return acc }, {} as FilesStore) -- cgit v1.2.3