π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: org selector
Nevo David9499bde725e1
diff --git a/apps/frontend/src/components/layout/organization.selector.tsx b/apps/frontend/src/components/layout/organization.selector.tsxindex f4f74c1f8..1c49183d5 100644--- a/apps/frontend/src/components/layout/organization.selector.tsx+++ b/apps/frontend/src/components/layout/organization.selector.tsx@@ -13,7 +13,7 @@ export const OrganizationSelector = () => {return await (await fetch('/user/organizations')).json();}, []);- const { data } = useSWR('organizations', load, {+ const { isLoading, data } = useSWR('organizations', load, {revalidateIfStale: false,revalidateOnFocus: false,refreshWhenOffline: false,@@ -41,6 +41,10 @@ export const OrganizationSelector = () => {[]);+ if (isLoading || !isLoading && data?.length === 0) {+ return null;+ }+return (<div className="bg-third h-[48px] flex items-center min-w-[172px] select-none relative group"><div className="border-tableBorder py-[8px] px-[12px] border w-full h-full flex items-center">