fix(datatables): check the workspace stamp in the default database selector too

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Diego Imbert
2026-09-21 10:05:06 +02:00
co-authored by Claude Opus 5
parent 953c6903bb
commit e196a754af
@@ -47,9 +47,12 @@
)
const datatableItems = $derived(toDatatableItems(datatables.current))
// Until the answer is for this data table and role, the schemas in hand belong to another.
// Until the answer is for this workspace, data table and role, the schemas in hand belong to
// another.
const schemaItems = $derived(
access.current.datatable === datatable && access.current.role === role
access.current.workspace === opWs &&
access.current.datatable === datatable &&
access.current.role === role
? toSchemaItems(access.current.schemas)
: []
)