Updated Kanban Board

This commit is contained in:
THIS ONE IS A LITTLE BIT TRICKY KRUB 2023-11-18 21:27:07 +07:00
parent 48caf70f45
commit 69ffa63307

View File

@ -136,6 +136,7 @@ function KanbanBoard() {
))} ))}
</SortableContext> </SortableContext>
</div> </div>
{/* create new column */}
<button <button
onClick={() => { onClick={() => {
createNewColumn(); createNewColumn();
@ -203,7 +204,7 @@ function KanbanBoard() {
if (task.id !== id) return task; if (task.id !== id) return task;
return { ...task, content }; return { ...task, content };
}); });
if (content === "") return deleteTask(id);
setTasks(newTasks); setTasks(newTasks);
} }