fix: try to ensure chat and blurbs load properly initially

This commit is contained in:
Andy Burke 2025-10-03 15:38:40 -07:00
parent f35fe395c6
commit 8b70172493
2 changed files with 7 additions and 6 deletions

View file

@ -125,8 +125,8 @@
});
}
async function load_active_topic_for_chat() {
const topic_id = document.body.dataset.topic;
async function load_active_topic_for_chat(event) {
const topic_id = event?.detail?.topic_id ?? document.body.dataset.topic;
if (!topic_id) return;
const user = document.body.dataset.user ? JSON.parse(document.body.dataset.user) : null;