Skip to content

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

fix: updated to show functions count (#43988)

Ali Waseem3b94d12a2dc3
diff --git a/apps/studio/pages/project/[ref]/functions/index.tsx b/apps/studio/pages/project/[ref]/functions/index.tsx
index d3cd3f47005..763ed65e1a1 100644
--- a/apps/studio/pages/project/[ref]/functions/index.tsx
+++ b/apps/studio/pages/project/[ref]/functions/index.tsx
@@ -128,6 +128,11 @@ const EdgeFunctionsPage: NextPageWithLayout = () => {
<div className="flex items-center gap-2">
<EdgeFunctionsSortDropdown value={sort} onChange={setSortQueryParam} />
</div>
+ <span className="border-l border-default pl-2 text-xs text-foreground-light">
+ {search && filteredFunctions.length !== functions.length
+ ? `Viewing ${filteredFunctions.length} of ${functions.length} functions in total`
+ : `Viewing ${functions.length} ${functions.length === 1 ? 'function' : 'functions'} in total`}
+ </span>
</div>
<Card>
<Table>