refac
This commit is contained in:
1 parent
fa76764c3b
commit
aa851d93c6
1 file changed
+7
-1
@@ -876,7 +876,13 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await loadChat();
|
const pendingTaskIds = await getTaskIdsByChatId(localStorage.token, $chatId)
|
||||||
|
.then((res) => res?.task_ids ?? [])
|
||||||
|
.catch(() => null);
|
||||||
|
|
||||||
|
if (pendingTaskIds?.length === 0) {
|
||||||
|
await loadChat();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|||||||
Reference in new issue
Block a user