Skip to content

Commit

Permalink
fix(lit-table): spread table options in lit adapter (#5904)
Browse files Browse the repository at this point in the history
* fix: spread table options in lit adapter

* dummy commit

---------

Co-authored-by: Mor Kadosh <[email protected]>
  • Loading branch information
kadoshms and Mor Kadosh authored Feb 10, 2025
1 parent 827b098 commit 36dede1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/lit-table/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ export class TableController<TData extends RowData>

this.tableInstance.setOptions(prev => ({
...prev,
...options,
state: { ...this._tableState, ...options.state },
data: options.data,
columns: options.columns,
onStateChange: (updater: any) => {
this._tableState = updater(this._tableState)
this.host.requestUpdate()
Expand Down

0 comments on commit 36dede1

Please sign in to comment.