Skip to content

Commit fe9a2d9

Browse files
committed
fix(tags): query.table doesn't work
fix #57
1 parent 196435b commit fe9a2d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ui/query-table.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,17 @@ export function query_table_clickHeader(slot, index, order, saveState) {
9191
table.replaceChildren(...sortedHTMLItems)
9292
}
9393

94-
export function query_table_no_save_state(c: C, rows: any[], fields?: string[],
94+
export function query_table_no_save_state(context: C, rows: any[], fields?: string[],
9595
opts?: { orderBy?: string, orderDesc?: boolean },
9696
) {
9797
const options: any = {}
9898
Object.assign(options, opts)
9999
options.fields = fields
100100

101-
return query_table(c, rows, false, options)
101+
return query_table(context, rows, false, options)
102102
}
103-
export function query_table_save_state(c: C, rows: any[], fields?: string[]) {
104-
return query_table(c, rows, true, {fields})
103+
export function query_table_save_state(context: C, rows: any[], fields?: string[]) {
104+
return query_table(context, rows, true, {fields})
105105
}
106106
function query_table(
107107
context: C,

0 commit comments

Comments
 (0)