Skip to content

Commit

Permalink
group row should not be made if serverChildrenCount is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Jul 11, 2024
1 parent f3346cf commit 3063a2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const insertDataRowInTree = ({
// We create a leaf node for the data row.
if (existingNodeIdWithPartialPath == null) {
let node: GridLeafNode | GridDataSourceGroupNode;
if (serverChildrenCount !== 0) {
if (serverChildrenCount !== undefined && serverChildrenCount !== 0) {
node = {
type: 'group',
id,
Expand Down

0 comments on commit 3063a2a

Please sign in to comment.