Explorar el Código

fix: stopTask func need use async/await syntax

wangtunan hace 6 meses
padre
commit
7d1a094f9b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -1686,7 +1686,7 @@
 	const stopResponse = async () => {
 		if (taskId) {
 			const res = await stopTask(localStorage.token, taskId).catch((error) => {
-				toast.error(error);
+				toast.error(`${error}`);
 				return null;
 			});