Fix tsc error

This commit is contained in:
schroda
2025-07-28 20:59:14 +02:00
parent a38b2fce9d
commit ca938a6438

View File

@@ -101,9 +101,6 @@ export const ServerSettings = () => {
const [serverAddress, setServerAddress] = useLocalStorage<string>('serverBaseURL', window.location.origin);
const serverSettings = extractServerSettings(data!.settings);
const authModeDisabled = !serverSettings.authUsername.trim() || !serverSettings.authPassword.trim();
const handleServerAddressChange = (address: string) => {
const serverBaseUrl = address.replaceAll(/(\/)+$/g, '');
setServerAddress(serverBaseUrl);
@@ -186,6 +183,9 @@ export const ServerSettings = () => {
);
}
const serverSettings = extractServerSettings(data!.settings);
const authModeDisabled = !serverSettings.authUsername.trim() || !serverSettings.authPassword.trim();
return (
<List sx={{ pt: 0 }}>
{localSettings}