ods-component-lib 1.18.16 → 1.18.17

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.
@@ -17171,6 +17171,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
17171
17171
  setColumns(newColumns);
17172
17172
  }
17173
17173
  }, [props.columns]);
17174
+ useEffect(function () {
17175
+ if (Array.isArray(props.dataSource) && props.dataSource.length > 0) {
17176
+ setData(props.dataSource);
17177
+ }
17178
+ }, [props.dataSource]);
17174
17179
  useEffect(function () {
17175
17180
  locale(localStorage.getItem("locale"));
17176
17181
  loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
@@ -17432,7 +17437,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
17432
17437
  }, [data.length]);
17433
17438
  return React.createElement(React.Fragment, null, React.createElement(DataGrid$1, {
17434
17439
  keyExpr: props.keyExpr,
17435
- dataSource: props.isServerSide ? data : props.dataSource,
17440
+ dataSource: data,
17436
17441
  showBorders: true,
17437
17442
  columnAutoWidth: false,
17438
17443
  onEditorPreparing: onEditorPreparing,