Commit 47347e1f by Madhankumar

issue resolved in task

parent 4b7404c7
{ {
"task": [ "task": [
{ {
"title": "", "title": "12223",
"isCompleted": false, "isCompleted": false,
"id": 1 "id": 1
},
{
"title": "",
"isCompleted": false,
"id": 2
} }
] ]
} }
\ No newline at end of file
...@@ -63,7 +63,7 @@ function Task({ id = 1, title, isCompleted, onChange, onDelete }) { ...@@ -63,7 +63,7 @@ function Task({ id = 1, title, isCompleted, onChange, onDelete }) {
const handler = setTimeout(() => { const handler = setTimeout(() => {
if (textarea_ref.current.value !== title) { if (textarea_ref.current.value !== title) {
onChange({ id, title: debouncetitle }); onChange({ id, title: debouncetitle });
toast.success("Task updated"); // toast.success("Task updated");
} }
}, 2000); }, 2000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment