@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
|
@@ -591,9 +591,14 @@ export const GridContextProvider = <RowType extends GridBaseRow>(props: PropsWit
|
|
|
591
591
|
|
|
592
592
|
const redrawRows = useCallback(
|
|
593
593
|
(rowNodes?: IRowNode[]) => {
|
|
594
|
-
|
|
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
|
-
[
|
|
601
|
+
[gridApi],
|
|
597
602
|
);
|
|
598
603
|
|
|
599
604
|
// waitForExternallySelectedItemsToBeInSync can't use the state as it won't be updated during function execution
|