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.
package/dist/index.js CHANGED
@@ -17176,6 +17176,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
17176
17176
  setColumns(newColumns);
17177
17177
  }
17178
17178
  }, [props.columns]);
17179
+ React.useEffect(function () {
17180
+ if (Array.isArray(props.dataSource) && props.dataSource.length > 0) {
17181
+ setData(props.dataSource);
17182
+ }
17183
+ }, [props.dataSource]);
17179
17184
  React.useEffect(function () {
17180
17185
  localization.locale(localStorage.getItem("locale"));
17181
17186
  localization.loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
@@ -17437,7 +17442,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
17437
17442
  }, [data.length]);
17438
17443
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(DataGrid__default, {
17439
17444
  keyExpr: props.keyExpr,
17440
- dataSource: props.isServerSide ? data : props.dataSource,
17445
+ dataSource: data,
17441
17446
  showBorders: true,
17442
17447
  columnAutoWidth: false,
17443
17448
  onEditorPreparing: onEditorPreparing,