fix(frontend): restore chat DOM structure and guard addMessage against null
CI / test (push) Successful in 1m39s
CI / docker (push) Successful in 49s

This commit is contained in:
zwitschi committed 2026-08-13 14:57:18 +02:00
1 parent 70a5159f81
commit 76397d52d7
3 files changed
+16 -6

No files matched your search

+2 -1
View File
@@ -119,7 +119,8 @@ function connectWebSocket(room: string) {
}
function addMessage(type: string, text: string, sender = "", timestamp = new Date()) {
const messages = document.getElementById("messages")!;
const messages = document.getElementById("messages");
if (!messages) return;
const div = document.createElement("div");
div.className = "message-row";