Skip to content

Commit 36dede1

Browse files
kadoshmsMor Kadosh
and
Mor Kadosh
authoredFeb 10, 2025··
fix(lit-table): spread table options in lit adapter (#5904)
* fix: spread table options in lit adapter * dummy commit --------- Co-authored-by: Mor Kadosh <mkadosh@paloaltonetworks.com>
1 parent 827b098 commit 36dede1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

Diff for: ‎packages/lit-table/src/index.ts

+1-2
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)
Please sign in to comment.