diff --git a/src/utils/tree-data-utils.ts b/src/utils/tree-data-utils.ts index cb245817..6f7aa46b 100644 --- a/src/utils/tree-data-utils.ts +++ b/src/utils/tree-data-utils.ts @@ -991,7 +991,7 @@ export const getTreeFromFlatData = >({ getParentKey(child) ) - if (rootKey === null || !childrenToParents[rootKey]) { + if (!(String(rootKey) in childrenToParents)) { return [] }