Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix: Hide function doc link for triggers (#18344)

Greg Richardson43875eacf482
diff --git a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
index aae38169fcd..930180e558b 100644
--- a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
+++ b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
@@ -44,7 +44,6 @@ const FunctionList = ({
includes(x.name.toLowerCase(), filterString.toLowerCase())
)
const _functions = filteredFunctions.filter((x) => x.schema == schema)
- const isApiDocumentAvailable = schema == 'public'
const projectRef = selectedProject?.ref
const canUpdateFunctions = useCheckPermissions(
@@ -81,6 +80,8 @@ const FunctionList = ({
return (
<>
{_functions.map((x) => {
+ const isApiDocumentAvailable = schema == 'public' && x.return_type !== 'trigger'
+
return (
<Table.tr key={x.id}>
<Table.td className="truncate">