mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: stopTask func need use async/await syntax
This commit is contained in:
parent
533c99e384
commit
7d1a094f9b
1 changed files with 1 additions and 1 deletions
|
|
@ -1686,7 +1686,7 @@
|
||||||
const stopResponse = async () => {
|
const stopResponse = async () => {
|
||||||
if (taskId) {
|
if (taskId) {
|
||||||
const res = await stopTask(localStorage.token, taskId).catch((error) => {
|
const res = await stopTask(localStorage.token, taskId).catch((error) => {
|
||||||
toast.error(error);
|
toast.error(`${error}`);
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue