ods-component-lib 1.17.53 → 1.17.55

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.
@@ -1197,11 +1197,14 @@ function OdsDataGrid(props) {
1197
1197
  useEffect(function () {
1198
1198
  setTimeout(function () {
1199
1199
  var totalCount = props.dataSource.length;
1200
- dataGridRef.current.instance.component.beginUpdate();
1201
- dataGridRef.current.instance.totalCount(totalCount);
1202
- dataGridRef.current.instance.component.endUpdate();
1200
+ if (dataGridRef.current.instance.component !== undefined) {
1201
+ debugger;
1202
+ dataGridRef.current.instance.component.beginUpdate();
1203
+ dataGridRef.current.instance.totalCount(totalCount);
1204
+ dataGridRef.current.instance.component.endUpdate();
1205
+ }
1203
1206
  }, 1000);
1204
- }, []);
1207
+ }, [props.dataSource]);
1205
1208
  return grid(props, dataGridRef);
1206
1209
  }
1207
1210
  function grid(props, dataGridRef) {