@inspark/inspark-components 1.0.12 → 1.0.13

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.
@@ -1922,7 +1922,9 @@
1922
1922
  var hiddenFields = (this.columns || []).filter(function (_col) { return _col.isHidden; }).map(function (_col) { return _col.field; }).join(',');
1923
1923
  this.saveToLocalStorage(hiddenFields, this.stateKey + 'HiddenFields');
1924
1924
  window.localStorage.removeItem(this.stateKey);
1925
- this.dt.restoreState();
1925
+ if (this.dt) {
1926
+ this.dt.restoreState();
1927
+ }
1926
1928
  }
1927
1929
  };
1928
1930
  TableComponent.prototype.countVisibleColumns = function () {