Fix tsc error
This commit is contained in:
@@ -101,9 +101,6 @@ export const ServerSettings = () => {
|
|||||||
|
|
||||||
const [serverAddress, setServerAddress] = useLocalStorage<string>('serverBaseURL', window.location.origin);
|
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 handleServerAddressChange = (address: string) => {
|
||||||
const serverBaseUrl = address.replaceAll(/(\/)+$/g, '');
|
const serverBaseUrl = address.replaceAll(/(\/)+$/g, '');
|
||||||
setServerAddress(serverBaseUrl);
|
setServerAddress(serverBaseUrl);
|
||||||
@@ -186,6 +183,9 @@ export const ServerSettings = () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const serverSettings = extractServerSettings(data!.settings);
|
||||||
|
const authModeDisabled = !serverSettings.authUsername.trim() || !serverSettings.authPassword.trim();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<List sx={{ pt: 0 }}>
|
<List sx={{ pt: 0 }}>
|
||||||
{localSettings}
|
{localSettings}
|
||||||
|
|||||||
Reference in New Issue
Block a user