Skip to content

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

Reverse activetab priority

Terry Sutton1a1a4cda421f
diff --git a/packages/ui/src/components/Tabs/Tabs.tsx b/packages/ui/src/components/Tabs/Tabs.tsx
index 8257ad94679..e79fd1569ce 100644
--- a/packages/ui/src/components/Tabs/Tabs.tsx
+++ b/packages/ui/src/components/Tabs/Tabs.tsx
@@ -56,7 +56,7 @@ function Tabs({
// activeId state can be overriden externally with `active`
// defaults to use a url #hash if we have one or activeTab if not
- const active = hash ? hash : activeId ? activeId : activeTab
+ const active = activeId ? activeId : hash ? hash : activeTab
function onTabClick(id: string) {
const newTabSelected = id !== active