@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.
@@ -4866,8 +4866,14 @@ const GridContextProvider = (props) => {
4866
4866
  });
4867
4867
  }, [gridApiOp, modifyUpdating, selectNextEditableCell]);
4868
4868
  const redrawRows = useCallback((rowNodes) => {
4869
- gridApiOp((gridApi) => gridApi.redrawRows(rowNodes ? { rowNodes } : undefined));
4870
- }, [gridApiOp]);
4869
+ // redraw rows can throw exceptions in jest, so we ignore them
4870
+ try {
4871
+ gridApi && gridApi.redrawRows(rowNodes ? { rowNodes } : undefined);
4872
+ }
4873
+ catch (ex) {
4874
+ console.error(ex);
4875
+ }
4876
+ }, [gridApi]);
4871
4877
  // waitForExternallySelectedItemsToBeInSync can't use the state as it won't be updated during function execution
4872
4878
  const externallySelectedItemsAreInSyncRef = useRef(false);
4873
4879
  useEffect(() => {