1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Fix filters not working

This commit is contained in:
Andrew Kingston 2023-04-11 23:25:19 +01:00
parent 727d3d5b6d
commit 38f326dce4

View file

@ -2,7 +2,7 @@
import TableFilterButton from "../TableFilterButton.svelte"
import { getContext } from "svelte"
const { columns, config, filter, schema } = getContext("sheet")
const { columns, config, filter, table } = getContext("sheet")
const onFilter = e => {
filter.set(e.detail || [])
@ -11,7 +11,7 @@
{#key $config.tableId}
<TableFilterButton
schema={$schema}
schema={$table?.schema}
filters={$filter}
on:change={onFilter}
disabled={!$columns.length}