mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-17 16:03:06 +00:00
fix: open the raw app data table drawer when the workspace has none
Selecting the first data table of an empty list passed undefined to the name check, which threw instead of opening the drawer on no data table. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
2718d6846c
commit
d2480b4bbd
@@ -210,11 +210,17 @@
|
||||
)
|
||||
}
|
||||
|
||||
function selectDatatable(datatable: string, role?: string) {
|
||||
// `undefined` where the workspace has no data table at all: the drawer opens on none, and
|
||||
// its tree says so, rather than on a name that does not exist.
|
||||
function selectDatatable(datatable: string | undefined, role?: string) {
|
||||
// A row clicked under another data table has just set the selection it should open on.
|
||||
openSchemaKey = selectedSchemaKey
|
||||
openTableKey = selectedTableKey
|
||||
selectedDatatable = datatable
|
||||
if (datatable === undefined) {
|
||||
selectedRole = undefined
|
||||
return
|
||||
}
|
||||
// A data table opens as the role its picked tables were browsed as, else the one the app
|
||||
// already uses it through.
|
||||
connectAs(
|
||||
|
||||
Reference in New Issue
Block a user