@linzjs/step-ag-grid 17.0.0 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4887,8 +4887,14 @@ const GridContextProvider = (props) => {
4887
4887
  });
4888
4888
  }, [gridApiOp, modifyUpdating, selectNextEditableCell]);
4889
4889
  const redrawRows = React.useCallback((rowNodes) => {
4890
- gridApiOp((gridApi) => gridApi.redrawRows(rowNodes ? { rowNodes } : undefined));
4891
- }, [gridApiOp]);
4890
+ // redraw rows can throw exceptions in jest, so we ignore them
4891
+ try {
4892
+ gridApi && gridApi.redrawRows(rowNodes ? { rowNodes } : undefined);
4893
+ }
4894
+ catch (ex) {
4895
+ console.error(ex);
4896
+ }
4897
+ }, [gridApi]);
4892
4898
  // waitForExternallySelectedItemsToBeInSync can't use the state as it won't be updated during function execution
4893
4899
  const externallySelectedItemsAreInSyncRef = React.useRef(false);
4894
4900
  React.useEffect(() => {