Skip to content

Commit

Permalink
hide add federation form if already have federation
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed Feb 26, 2024
1 parent e092708 commit 7b1d293
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routes/settings/ManageFederations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,11 @@ export function ManageFederations() {
{i18n.t("settings.manage_federations.learn_more")}
</ExternalLink>
</NiceP>
<AddFederationForm refetch={refetch} />
<Suspense>
<Show when={!state.federations?.length}>
<AddFederationForm refetch={refetch} />
</Show>
</Suspense>
<VStack>
<Suspense>
<Switch>
Expand Down

0 comments on commit 7b1d293

Please sign in to comment.