Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fix node type checks (#11769)

boojack281bc66ed470
diff --git a/frontend/src/views/sql-editor/AsidePanel/SchemaPane/common.ts b/frontend/src/views/sql-editor/AsidePanel/SchemaPane/common.ts
index 0ca2d24499..37d0a4710b 100644
--- a/frontend/src/views/sql-editor/AsidePanel/SchemaPane/common.ts
+++ b/frontend/src/views/sql-editor/AsidePanel/SchemaPane/common.ts
@@ -186,7 +186,7 @@ export const keyForNodeTarget = <T extends NodeType>(
`procedures/${procedure.name}`,
].join("/");
}
- if (type === "procedure") {
+ if (type === "function") {
const { db, schema, function: func } = target as NodeTarget<"function">;
return [db.name, `schemas/${schema.name}`, `functions/${func.name}`].join(
"/"