mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
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:
parent
a083c0da40
commit
896f546b46
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue