Skip to content

Commit

Permalink
Merge pull request #2552 from apuliasoft/fix/kup-datatable-fix-state-…
Browse files Browse the repository at this point in the history
…first-render

NC: fix kup-data-table state on first render
  • Loading branch information
pasere-smeup authored Mar 4, 2025
2 parents 7d66624 + adb6fdb commit da6b7a8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ export class KupDataTable {
this.visibleColumns = state.visibleColumns
? [...state.visibleColumns]
: undefined;
} else {
this.#kupManager.debug.logMessage(
this,
'Persisting initial stateId ' + this.stateId
);
this.store.persistState(this.stateId, this.state);
}
}
}
Expand Down

0 comments on commit da6b7a8

Please sign in to comment.