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