Skip to content

Commit

Permalink
fix(ui): control panel table not rendered (#944)
Browse files Browse the repository at this point in the history
Fixes #940 caused by localstorage inconsistence after upgrading to 3.0.0
  • Loading branch information
robertsLando committed Mar 25, 2021
1 parent 135bbef commit 73a6631
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/modules/ManagedItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ export class ManagedItems {
? this.loadSetting('filters', this.initialFilters)
: this.filters
this._selected = this.initialSelected

// fix possible inconsistance from localstorage
for (const p in this.filters) {
if (!this.propDefs[p]) {
delete this.filters[p]
}
}

this.tableColumns = this.tableColumns.filter(t => !!this.propDefs[t.name])
}

/**
Expand Down

0 comments on commit 73a6631

Please sign in to comment.