Spaces:
Paused
Paused
fix: clearFeed must not wipe #feed-empty — remove only .msg children
Browse files- frontend/app.js +2 -1
frontend/app.js
CHANGED
|
@@ -571,7 +571,8 @@ function renderReward(stepData) {
|
|
| 571 |
// CONVERSATION FEED
|
| 572 |
// ═══════════════════════════════════════════════════════════
|
| 573 |
function clearFeed() {
|
| 574 |
-
|
|
|
|
| 575 |
$('feed-empty').classList.remove('hidden');
|
| 576 |
}
|
| 577 |
|
|
|
|
| 571 |
// CONVERSATION FEED
|
| 572 |
// ═══════════════════════════════════════════════════════════
|
| 573 |
function clearFeed() {
|
| 574 |
+
// Remove only .msg elements — leave #feed-empty intact
|
| 575 |
+
document.querySelectorAll('#message-feed .msg').forEach(el => el.remove());
|
| 576 |
$('feed-empty').classList.remove('hidden');
|
| 577 |
}
|
| 578 |
|