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.
2 parents fb8d7fe + 7da2893 commit 154d393Copy full SHA for 154d393
packages/lib/src/data-grid/DataGrid.tsx
@@ -157,7 +157,7 @@ const DxcDataGrid = ({
157
158
const onRowsChange = (newRows: GridRow[] | HierarchyGridRow[] | ExpandableGridRow[]) => {
159
// call function to change rows, like when they have been edited
160
- onGridRowsChange(newRows);
+ if (typeof onGridRowsChange === "function") onGridRowsChange(newRows);
161
};
162
163
const sortedRows = useMemo((): readonly GridRow[] => {
0 commit comments