resolve warnings and type errors

This commit is contained in:
2026-03-19 21:31:07 +01:00
parent f8510c8db3
commit 75d88257c8
99 changed files with 11 additions and 12 deletions

0
src/components/configuration/AssistRulesEditor.tsx Normal file → Executable file
View File

0
src/components/configuration/ConfigurationEditor.tsx Normal file → Executable file
View File

0
src/components/configuration/EventConfigEditor.tsx Normal file → Executable file
View File

0
src/components/configuration/EventRulesEditor.tsx Normal file → Executable file
View File

2
src/components/configuration/ServerSettingsEditor.tsx Normal file → Executable file
View 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');

0
src/components/leaderboard/LeaderboardManager.tsx Normal file → Executable file
View File

0
src/components/leaderboard/LeaderboardStandings.tsx Normal file → Executable file
View File

0
src/components/leaderboard/editors/DriversEditor.tsx Normal file → Executable file
View File

0
src/components/leaderboard/editors/FlPointsEditor.tsx Normal file → Executable file
View File

View File

0
src/components/leaderboard/editors/TracksEditor.tsx Normal file → Executable file
View File

0
src/components/login/LoginForm.tsx Normal file → Executable file
View File

0
src/components/membership/CreateUserModal.tsx Normal file → Executable file
View File

0
src/components/membership/DeleteUserModal.tsx Normal file → Executable file
View File

0
src/components/membership/UserManagementTable.tsx Normal file → Executable file
View File

0
src/components/providers/QueryProvider.tsx Normal file → Executable file
View File

0
src/components/server/CreateServerModal.tsx Normal file → Executable file
View File

0
src/components/server/DeleteServerModal.tsx Normal file → Executable file
View File

0
src/components/server/ServerCard.tsx Normal file → Executable file
View File

0
src/components/server/ServerConfigurationTabs.tsx Normal file → Executable file
View File

6
src/components/server/ServerCreationPopup.tsx Normal file → Executable file
View File

@@ -78,15 +78,15 @@ export function ServerCreationPopup({
setEntries((prev) => [...prev, newEntry]);
}, []);
const scrollToBottom = () => {
const scrollToBottom = useCallback(() => {
if (consoleRef.current && !isMinimized && isConsoleVisible) {
consoleRef.current.scrollTop = consoleRef.current.scrollHeight;
}
};
}, [isMinimized, isConsoleVisible]);
useEffect(() => {
scrollToBottom();
}, [entries, isMinimized, isConsoleVisible]);
}, [entries, scrollToBottom]);
useEffect(() => {
if (serverId && isOpen) {

0
src/components/server/ServerCreationPopupContainer.tsx Normal file → Executable file
View File

0
src/components/server/ServerHeader.tsx Normal file → Executable file
View File

0
src/components/server/ServerListWithActions.tsx Normal file → Executable file
View File

0
src/components/statistics/DailyActivityChart.tsx Normal file → Executable file
View File

0
src/components/statistics/PlayerCountChart.tsx Normal file → Executable file
View File

0
src/components/statistics/RecentSessions.tsx Normal file → Executable file
View File

0
src/components/statistics/SessionTypesChart.tsx Normal file → Executable file
View File

0
src/components/statistics/StatCard.tsx Normal file → Executable file
View File

0
src/components/statistics/StatisticsDashboard.tsx Normal file → Executable file
View File

0
src/components/ui/Button.tsx Normal file → Executable file
View File

0
src/components/ui/Input.tsx Normal file → Executable file
View File

0
src/components/ui/LoadingSpinner.tsx Normal file → Executable file
View File

0
src/components/ui/LogoutButton.tsx Normal file → Executable file
View File

0
src/components/ui/Modal.tsx Normal file → Executable file
View File

0
src/components/ui/Pagination.tsx Normal file → Executable file
View File

0
src/components/ui/RefreshButton.tsx Normal file → Executable file
View File

0
src/components/ui/Select.tsx Normal file → Executable file
View File

0
src/components/ui/SteamCMDNotification.tsx Normal file → Executable file
View File

0
src/components/ui/Toast.tsx Normal file → Executable file
View File

0
src/components/websocket/WebSocketInitializer.tsx Normal file → Executable file
View File