From 770720e955ff6498ad3c2b6d87ab6491eb1ffad5 Mon Sep 17 00:00:00 2001 From: qu1ck Date: Mon, 25 Mar 2024 13:38:19 -0700 Subject: [PATCH] Fix server list panel height when there are no servers --- src/components/modals/settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modals/settings.tsx b/src/components/modals/settings.tsx index d1f1ee6..fabc362 100644 --- a/src/components/modals/settings.tsx +++ b/src/components/modals/settings.tsx @@ -318,7 +318,7 @@ export function AppSettingsModal(props: AppSettingsModalProps) { validateInputOnChange: true, }); - const [currentServerIndex, setCurrentServerIndex] = useState(0); + const [currentServerIndex, setCurrentServerIndex] = useState(-1); const { setValues } = form; useEffect(() => { @@ -360,7 +360,7 @@ export function AppSettingsModal(props: AppSettingsModalProps) { - + {currentServerIndex === -1 ? <>