Skip to content

Commit 36dede1

Browse files
kadoshmsMor Kadosh
andauthored
fix(lit-table): spread table options in lit adapter (#5904)
* fix: spread table options in lit adapter * dummy commit --------- Co-authored-by: Mor Kadosh <[email protected]>
1 parent 827b098 commit 36dede1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/lit-table/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ export class TableController<TData extends RowData>
5454

5555
this.tableInstance.setOptions(prev => ({
5656
...prev,
57+
...options,
5758
state: { ...this._tableState, ...options.state },
58-
data: options.data,
59-
columns: options.columns,
6059
onStateChange: (updater: any) => {
6160
this._tableState = updater(this._tableState)
6261
this.host.requestUpdate()

0 commit comments

Comments
 (0)