fix: stopTask func need use async/await syntax
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user