Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
josephrocca authored Jul 7, 2023
1 parent 221353c commit a85f057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2687,8 +2687,8 @@ <h2 style="text-align:center;margin-bottom: 0.5rem;">Your Characters</h2>
}, 200);

document.querySelectorAll("#chatThreads .thread").forEach(el => el.classList.remove("selected"));
const threadEl = $.chatThreads.querySelector(`.thread[data-thread-id="${threadId}"]`);
threadEl.classList.add("selected");
let threadEl = $.chatThreads.querySelector(`.thread[data-thread-id="${threadId}"]`);
if(threadEl) threadEl.classList.add("selected"); // `if(threadEl)` because it may not be visible if it's hidden by "show more" button due to the above `renderThreadList` call

document.querySelectorAll("#middleColumn > .middleColumnScreen").forEach(el => hideEl(el));
showEl($.chatInterface);
Expand Down

0 comments on commit a85f057

Please sign in to comment.