@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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "17.0.0",
5
+ "version": "17.0.1",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -591,9 +591,14 @@ export const GridContextProvider = <RowType extends GridBaseRow>(props: PropsWit
591
591
 
592
592
  const redrawRows = useCallback(
593
593
  (rowNodes?: IRowNode[]) => {
594
- gridApiOp((gridApi) => gridApi.redrawRows(rowNodes ? { rowNodes } : undefined));
594
+ // redraw rows can throw exceptions in jest, so we ignore them
595
+ try {
596
+ gridApi && gridApi.redrawRows(rowNodes ? { rowNodes } : undefined);
597
+ } catch (ex) {
598
+ console.error(ex);
599
+ }
595
600
  },
596
- [gridApiOp],
601
+ [gridApi],
597
602
  );
598
603
 
599
604
  // waitForExternallySelectedItemsToBeInSync can't use the state as it won't be updated during function execution