We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cbcd5d commit 00e3b60Copy full SHA for 00e3b60
src/apis/tasks.js
@@ -22,9 +22,9 @@ export const addTask = async (task) => {
22
}
23
};
24
25
-export const editTask = async (task) => {
+export const editTask = async (id, task) => {
26
try {
27
- const resp = await privateApi.put("/task/" + task.id, task);
+ const resp = await privateApi.put("/task/" + id, task);
28
return resp.data?.data;
29
} catch (error) {
30
if (error.response?.status === 404) return null;
0 commit comments