@gpa-gemstone/react-table 1.2.69 → 1.2.70

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.
@@ -67,6 +67,9 @@ function ConfigurableTable(props) {
67
67
  setWidthDisabledAdd(false);
68
68
  }
69
69
  }, []);
70
+ React.useEffect(() => {
71
+ setColumns(getKeyMappings());
72
+ }, [props.children]);
70
73
  React.useEffect(() => {
71
74
  if (props.OnSettingsChange !== undefined)
72
75
  props.OnSettingsChange(showSettings);
@@ -74,10 +77,6 @@ function ConfigurableTable(props) {
74
77
  React.useEffect(() => {
75
78
  saveLocal();
76
79
  }, [columns]);
77
- /**
78
- *
79
- * @returns
80
- */
81
80
  function saveLocal() {
82
81
  if (props.LocalStorageKey === undefined)
83
82
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/react-table",
3
- "version": "1.2.69",
3
+ "version": "1.2.70",
4
4
  "description": "Table for GPA web applications",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@gpa-gemstone/gpa-symbols": "0.0.49",
47
- "@gpa-gemstone/helper-functions": "0.0.39",
48
- "@gpa-gemstone/react-interactive": "1.0.147",
47
+ "@gpa-gemstone/helper-functions": "0.0.40",
48
+ "@gpa-gemstone/react-interactive": "1.0.148",
49
49
  "@types/lodash": "^4.14.171",
50
50
  "@types/react": "^17.0.14",
51
51
  "lodash": "^4.17.21",