From 68a3f871ebfd6bcd5baca1c157be5e7224185ba3 Mon Sep 17 00:00:00 2001 From: Zbyszek Czarnecki Date: Wed, 29 Jul 2026 20:26:19 +0200 Subject: [PATCH] Fix getTreeFromFlatData regression with null rootKey --- src/utils/tree-data-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 [] }