sccoreui 5.9.89 → 5.9.91

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.
@@ -87,7 +87,7 @@ function HideColumn() {
87
87
  const columnDefs = JSON.parse(JSON.stringify(gridData.columnData));
88
88
  const updatedColumnDefs = columnDefs.map((colDef) => {
89
89
  const colToHide = columnsToHide.find((col) => col.id === colDef.id);
90
- colDef.hide = !!colToHide;
90
+ colDef.hide = (colDef === null || colDef === void 0 ? void 0 : colDef.visibleInPanel) ? !!colToHide : colDef === null || colDef === void 0 ? void 0 : colDef.hide;
91
91
  const updatedCol = updatedSeq.find((col) => col.id === colDef.id);
92
92
  if (updatedCol) {
93
93
  colDef.seq = updatedCol.seq;
@@ -265,9 +265,7 @@ function ParentForGrid(props) {
265
265
  return colDef;
266
266
  });
267
267
  const reOrderedColumns = updatedColumnDefs.sort((a, b) => a.seq - b.seq);
268
- setGridData(Object.assign(Object.assign({}, gridData), { columnData: columnFromProps }));
269
268
  gridRef.current.api.setGridOption("columnDefs", reOrderedColumns);
270
- return;
271
269
  }, [props === null || props === void 0 ? void 0 : props.columnData]);
272
270
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(error_ui_1.default, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: { height: style.height, width: style.width }, className: "ag-grid-container border-1 border-gray-200 border-round" }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(context_provider_1.default, Object.assign({ value: {
273
271
  featureDetails,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.9.89",
3
+ "version": "5.9.91",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",