@onehat/ui 0.3.328 → 0.3.329

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.328",
3
+ "version": "0.3.329",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -232,6 +232,9 @@ function GridComponent(props) {
232
232
  id: column.id,
233
233
  isHidden: !!column.isHidden,
234
234
  };
235
+ if (column.w) {
236
+ localConfig[ix].w = column.w;
237
+ }
235
238
  });
236
239
  }
237
240
  setSaved(localColumnsConfigKey, localConfig);
@@ -864,7 +867,7 @@ function GridComponent(props) {
864
867
  // This should allow us to continue using non-serializable configurations after a refresh
865
868
  const reconstructedLocalColumnsConfig = savedLocalColumnsConfig.map((savedConfig) => { // foreach saved column, in the order it was saved...
866
869
  const columnConfig = localColumnsConfig.find(localConfig => localConfig.id === savedConfig.id); // find the corresponding column in localColumnsConfig
867
- columnConfig.isHidden = savedConfig.isHidden;
870
+ _.assign(columnConfig, savedConfig);
868
871
  return columnConfig;
869
872
  });
870
873
  localColumnsConfig = reconstructedLocalColumnsConfig;