@inspark/inspark-components 1.0.10 → 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.
@@ -1727,7 +1727,9 @@ var TableComponent = /** @class */ (function () {
1727
1727
  var hiddenFields = (this.columns || []).filter(function (_col) { return _col.isHidden; }).map(function (_col) { return _col.field; }).join(',');
1728
1728
  this.saveToLocalStorage(hiddenFields, this.stateKey + 'HiddenFields');
1729
1729
  window.localStorage.removeItem(this.stateKey);
1730
- this.dt.restoreState();
1730
+ if (this.dt) {
1731
+ this.dt.restoreState();
1732
+ }
1731
1733
  }
1732
1734
  };
1733
1735
  TableComponent.prototype.countVisibleColumns = function () {