Fix: Fehler beim Laden wenn Kacheln ausgeblendet sind
_applyLayout entfernte Widgets ohne die Card-Elemente vorher zu parken. Beim Wiederherstellen eines Layouts mit versteckten Kacheln (z.B. Timeline) gingen die DOM-Elemente verloren, was zu null-Referenz-Fehlern fuehrte. Fixes: - layout.js: Cards in tile-parking retten bevor Widget entfernt wird - app.js: Null-Guards in rerenderTimeline und _updateTimelineCount
Dieser Commit ist enthalten in:
@@ -960,6 +960,7 @@ const App = {
|
||||
const articleCount = entries.filter(e => e.kind === 'article').length;
|
||||
const snapshotCount = entries.filter(e => e.kind === 'snapshot').length;
|
||||
const countEl = document.getElementById('article-count');
|
||||
if (!countEl) return;
|
||||
if (articleCount > 0 && snapshotCount > 0) {
|
||||
countEl.innerHTML = `<span class="ht-legend-dot"></span> ${articleCount} Meldung${articleCount !== 1 ? 'en' : ''} + <span class="ht-legend-dot ht-legend-gold"></span> ${snapshotCount} Lagebericht${snapshotCount !== 1 ? 'e' : ''}`;
|
||||
} else if (articleCount > 0) {
|
||||
@@ -978,7 +979,8 @@ const App = {
|
||||
|
||||
rerenderTimeline() {
|
||||
const container = document.getElementById('timeline');
|
||||
const searchTerm = (document.getElementById('timeline-search').value || '').toLowerCase();
|
||||
if (!container) return;
|
||||
const searchTerm = (document.getElementById('timeline-search')?.value || '').toLowerCase();
|
||||
const filterType = this._timelineFilter;
|
||||
const range = this._timelineRange;
|
||||
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren