fix: address AI review feedback - early-return guard and unused volume
This commit is contained in:
parent
dae15410ab
commit
6d148d669b
2 changed files with 5 additions and 5 deletions
|
|
@ -340,6 +340,11 @@
|
||||||
|
|
||||||
// Load a specific conversation
|
// Load a specific conversation
|
||||||
async function loadConversation(convId) {
|
async function loadConversation(convId) {
|
||||||
|
// Early-return if already showing this conversation
|
||||||
|
if (convId === currentConversationId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Clear messages
|
// Clear messages
|
||||||
messagesDiv.innerHTML = '';
|
messagesDiv.innerHTML = '';
|
||||||
|
|
||||||
|
|
@ -349,10 +354,6 @@
|
||||||
});
|
});
|
||||||
document.querySelector(`[data-conversation-id="${convId}"]`)?.classList.add('active');
|
document.querySelector(`[data-conversation-id="${convId}"]`)?.classList.add('active');
|
||||||
|
|
||||||
if (convId === currentConversationId) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
currentConversationId = convId;
|
currentConversationId = convId;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -525,7 +525,6 @@ volumes:
|
||||||
project-repos:
|
project-repos:
|
||||||
caddy_data:
|
caddy_data:
|
||||||
chat-config:
|
chat-config:
|
||||||
chat-history:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
disinto-net:
|
disinto-net:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue