We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3346cf commit 3063a2aCopy full SHA for 3063a2a
packages/x-data-grid-pro/src/utils/tree/insertDataRowInTree.ts
@@ -99,7 +99,7 @@ export const insertDataRowInTree = ({
99
// We create a leaf node for the data row.
100
if (existingNodeIdWithPartialPath == null) {
101
let node: GridLeafNode | GridDataSourceGroupNode;
102
- if (serverChildrenCount !== 0) {
+ if (serverChildrenCount !== undefined && serverChildrenCount !== 0) {
103
node = {
104
type: 'group',
105
id,
0 commit comments