resolve warnings and type errors
This commit is contained in:
0
src/components/configuration/AssistRulesEditor.tsx
Normal file → Executable file
0
src/components/configuration/AssistRulesEditor.tsx
Normal file → Executable file
0
src/components/configuration/ConfigurationEditor.tsx
Normal file → Executable file
0
src/components/configuration/ConfigurationEditor.tsx
Normal file → Executable file
0
src/components/configuration/EventConfigEditor.tsx
Normal file → Executable file
0
src/components/configuration/EventConfigEditor.tsx
Normal file → Executable file
0
src/components/configuration/EventRulesEditor.tsx
Normal file → Executable file
0
src/components/configuration/EventRulesEditor.tsx
Normal file → Executable file
2
src/components/configuration/ServerSettingsEditor.tsx
Normal file → Executable file
2
src/components/configuration/ServerSettingsEditor.tsx
Normal file → Executable file
@@ -98,7 +98,7 @@ export function ServerSettingsEditor({ serverId, config }: ServerSettingsEditorP
|
||||
|
||||
const formDataObj = new FormData();
|
||||
Object.entries(formData).forEach(([key, value]) => {
|
||||
formDataObj.append(key, value.toString());
|
||||
formDataObj.append(key, value?.toString() ?? '');
|
||||
});
|
||||
if (restart) {
|
||||
formDataObj.append('restart', 'on');
|
||||
|
||||
Reference in New Issue
Block a user