Skip to content

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

Fix the projects dropdown in the Org Audit Logs (#18312)

Ivan Vasilov2f3e628774ce
diff --git a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
index 89825ff58af..309246848ed 100644
--- a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
+++ b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
@@ -121,6 +121,8 @@ const AuditLogs = () => {
}
})
+ const currentOrganization = organizations?.find((o) => o.slug === slug)
+
return (
<>
<ScaffoldContainerLegacy>
@@ -138,7 +140,9 @@ const AuditLogs = () => {
/>
<FilterPopover
name="Projects"
- options={projects ?? []}
+ options={
+ projects?.filter((p) => p.organization_id === currentOrganization?.id) ?? []
+ }
labelKey="name"
valueKey="ref"
activeOptions={filters.projects}