Skip to content

Commit 98c4a1a

Browse files
susnuxCarlSchwan
authored andcommitted
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>
1 parent b729dc4 commit 98c4a1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files/src/store/files.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export function useFilesStore(...args) {
103103
updateNodes(nodes: Node[]) {
104104
// Update the store all at once
105105
const files = nodes.reduce((acc, node) => {
106-
if (!node.fileid) {
107-
logger.error('Trying to update/set a node without fileid', { node })
106+
if (!node.id) {
107+
logger.error('Trying to update/set a node without id', { node })
108108
return acc
109109
}
110110

0 commit comments

Comments
 (0)