@linzjs/step-ag-grid 17.6.0 → 17.6.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.
@@ -4593,7 +4593,8 @@ const GridContextProvider = (props) => {
4593
4593
  * Used to check if it's OK to autosize.
4594
4594
  */
4595
4595
  const gridRenderState = useCallback(() => {
4596
- if (!gridApi)
4596
+ // Even though getModel can't be null, sometimes it is
4597
+ if (!gridApi || !gridApi.getModel())
4597
4598
  return null;
4598
4599
  if (!gridApi.getModel().isRowsToRender())
4599
4600
  return "empty";