🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor AdminPage component: streamline activeTab state initialization and comment out notFound check for clarity. This change simplifies the code structure while maintaining functionality.
Bill Yang5bc05846a791
diff --git a/client/src/app/admin/page.tsx b/client/src/app/admin/page.tsxindex 938839ecb..b168746c7 100644--- a/client/src/app/admin/page.tsx+++ b/client/src/app/admin/page.tsx@@ -44,12 +44,9 @@ function MobileSidebar() {}export default function AdminPage() {- if (!IS_CLOUD && !DEPLOYMENT) notFound();+ // if (!IS_CLOUD && !DEPLOYMENT) notFound();- const [activeTab, setActiveTab] = useQueryState(- "tab",- parseAsStringLiteral(ADMIN_TABS).withDefault("organizations")- );+ const [activeTab, setActiveTab] = useQueryState("tab", parseAsStringLiteral(ADMIN_TABS).withDefault("organizations"));const t = useExtracted();return (