Skip to content

Commit a8c7975

Browse files
committed
fix: invalid array access
1 parent 547ecd8 commit a8c7975

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vuu-ui/packages/vuu-table/src/useTableModel.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,11 @@ function updateTableConfig(
585585
...state,
586586
columns,
587587
};
588-
} else if (isGroupColumn(result.columns[0]) && confirmed === false) {
588+
} else if (
589+
result.columns.length > 0 &&
590+
isGroupColumn(result.columns[0]) &&
591+
confirmed === false
592+
) {
589593
// reset groupConfirmed to false, if true
590594
}
591595

0 commit comments

Comments
 (0)