Skip to content

Commit

Permalink
Fix: Hide function doc link for triggers (supabase#18344)
Browse files Browse the repository at this point in the history
fix: hide function doc link for triggers
  • Loading branch information
gregnr authored Oct 24, 2023
1 parent 7369010 commit 43875ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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">
Expand Down

0 comments on commit 43875ea

Please sign in to comment.