@inspark/inspark-components 1.0.16 → 1.0.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.
@@ -1996,7 +1996,7 @@
1996
1996
  return [];
1997
1997
  };
1998
1998
  TableComponent.prototype.restoreHiddenColumns = function () {
1999
- if (this.stateKey) {
1999
+ if (this.stateKey && window.localStorage.getItem(this.stateKey + 'HiddenFields')) {
2000
2000
  var hiddenFieldsArray_1 = this.getHiddenHiddenFieldsFromStorage();
2001
2001
  this.columns.forEach(function (_col) { return _col.isHidden = hiddenFieldsArray_1.includes(_col.field) || _col.col_invisible; });
2002
2002
  }