From e196a754afba9cff5f22fcd48650f87f04b5bbb8 Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Mon, 21 Sep 2026 10:05:06 +0200 Subject: [PATCH] fix(datatables): check the workspace stamp in the default database selector too Co-Authored-By: Claude Opus 5 (1M context) --- .../lib/components/raw_apps/DefaultDatabaseSelector.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/raw_apps/DefaultDatabaseSelector.svelte b/frontend/src/lib/components/raw_apps/DefaultDatabaseSelector.svelte index 8764bf3d74..c4d6d47269 100644 --- a/frontend/src/lib/components/raw_apps/DefaultDatabaseSelector.svelte +++ b/frontend/src/lib/components/raw_apps/DefaultDatabaseSelector.svelte @@ -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) : [] )