mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
fix: stopTask func need use async/await syntax
This commit is contained in:
parent
533c99e384
commit
7d1a094f9b
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user