Tabelle nur einmalig beim Laden der Seite

This commit is contained in:
2026-05-24 17:42:25 +02:00
parent 20a59166a8
commit b337c92d77

7
app.js
View File

@@ -30,7 +30,10 @@ async function loadPGN(showOverlay = true) {
hideError(); hideError();
try { try {
await updateStandings(); if (!window.standingsLoaded) {
await updateStandings();
window.standingsLoaded = true;
}
if (currentRound === 0) { if (currentRound === 0) {
if (showOverlay) showLoading(false); if (showOverlay) showLoading(false);
@@ -63,7 +66,6 @@ async function loadPGN(showOverlay = true) {
allLaraGames = filterLaraGames(allGames); allLaraGames = filterLaraGames(allGames);
if (allLaraGames.length === 0) { if (allLaraGames.length === 0) {
showError('Keine Partien von Lara gefunden.');
return; return;
} }
@@ -86,7 +88,6 @@ async function loadPGN(showOverlay = true) {
} catch (error) { } catch (error) {
if (currentPollId !== pollId) return; if (currentPollId !== pollId) return;
console.error('Fehler beim Laden:', error); console.error('Fehler beim Laden:', error);
showError(`Fehler: ${error.message}`);
showLoading(false); showLoading(false);
} }
} }