Skip to content

Commit aa851d9

Browse files
committed
refac
1 parent fa76764 commit aa851d9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/lib/components/chat/Chat.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,13 @@
876876
return;
877877
}
878878
879-
await loadChat();
879+
const pendingTaskIds = await getTaskIdsByChatId(localStorage.token, $chatId)
880+
.then((res) => res?.task_ids ?? [])
881+
.catch(() => null);
882+
883+
if (pendingTaskIds?.length === 0) {
884+
await loadChat();
885+
}
880886
};
881887
882888
onMount(() => {

0 commit comments

Comments
 (0)