@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.
@@ -4614,7 +4614,8 @@ const GridContextProvider = (props) => {
4614
4614
  * Used to check if it's OK to autosize.
4615
4615
  */
4616
4616
  const gridRenderState = React.useCallback(() => {
4617
- if (!gridApi)
4617
+ // Even though getModel can't be null, sometimes it is
4618
+ if (!gridApi || !gridApi.getModel())
4618
4619
  return null;
4619
4620
  if (!gridApi.getModel().isRowsToRender())
4620
4621
  return "empty";