diff --git a/app/ts/app.ts b/app/ts/app.ts index e9faf856..8439bd96 100644 --- a/app/ts/app.ts +++ b/app/ts/app.ts @@ -26,7 +26,7 @@ import { initLeftToolbar } from "./modules/left_toolbar"; import { setupTextareaAutoResize } from "./modules/input"; async function loadAndShowGraph(selected: string | undefined) { - if (!selected) return; + if (!selected || selected === "Select Database") return; try { const resp = await fetch(`/graphs/${encodeURIComponent(selected)}/data`); if (!resp.ok) {