From b952757dfc34e914513ee7f6913ee5c92c0f1836 Mon Sep 17 00:00:00 2001 From: Laura Date: Tue, 4 Nov 2025 20:44:27 +0100 Subject: [PATCH] fix missing id for files causing delete to not happen --- static/js/chat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/chat.js b/static/js/chat.js index 21ca59a..5b6c5f7 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -916,6 +916,10 @@ } addFile(file) { + if (!file.id) { + file.id = uid(); + } + this.#files.push(file); this.#_files.appendChild(