Skip to content

Commit

Permalink
Fixed #10065 - p-table with save state (localstorage/sessionstorage) …
Browse files Browse the repository at this point in the history
…remember old value after delete from filter
  • Loading branch information
yigitfindikli committed Apr 1, 2021
1 parent 06711ba commit e5f3dd0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2066,10 +2066,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
state.expandedRowKeys = this.expandedRowKeys;
}

if (Object.keys(state).length) {
storage.setItem(this.stateKey, JSON.stringify(state));
}

storage.setItem(this.stateKey, JSON.stringify(state));
this.onStateSave.emit(state);
}

Expand Down

0 comments on commit e5f3dd0

Please sign in to comment.