← back to Butlr
live page: fix completed-calls flash-disappear (scope live-grid card removal to #grid)
eeda3f9d4ffe5047d67c8b3c0c9c86796f40fb29 · 2026-05-26 10:15:38 -0700 · SteveStudio2
Files touched
Diff
commit eeda3f9d4ffe5047d67c8b3c0c9c86796f40fb29
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Tue May 26 10:15:38 2026 -0700
live page: fix completed-calls flash-disappear (scope live-grid card removal to #grid)
---
routes/live.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/routes/live.js b/routes/live.js
index 80917a0..916d241 100644
--- a/routes/live.js
+++ b/routes/live.js
@@ -335,7 +335,9 @@ function renderLive(calls) {
// Remove cards for calls that ended — unless we're listening to them (keep so user
// can finish hearing the wind-down before WS closes from the server side).
- document.querySelectorAll('.card').forEach((el) => {
+ // Scope to #grid: the completed-calls history (#doneGrid) also uses .card,
+ // and an unscoped selector would delete those done cards every refresh.
+ document.querySelectorAll('#grid .card').forEach((el) => {
const id = el.dataset.id;
if (!liveIds.has(id) && !sessions.has(id)) el.remove();
});
← 7b0d62c live page: hide + reap stale zombie calls (age-based filter
·
back to Butlr
·
live page: completed-calls filter to recordings over 5s + sh b82d7e0 →