mirror of
https://github.com/open-webui/open-webui
synced 2025-04-02 12:09:06 +00:00
Merge pull request #11307 from wangtunan/fix/stop_task_func_need_use_async_await_syntax
fix: stopTask func need use async/await syntax
This commit is contained in:
commit
12101fd26d
@ -1693,9 +1693,10 @@
|
||||
history.messages[responseMessage.id] = responseMessage;
|
||||
};
|
||||
|
||||
const stopResponse = () => {
|
||||
const stopResponse = async () => {
|
||||
if (taskId) {
|
||||
const res = stopTask(localStorage.token, taskId).catch((error) => {
|
||||
const res = await stopTask(localStorage.token, taskId).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
return null;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user