Skip to content

Task deletes instantly with no confirm dialog❌ #94

Description

@anoopcodehack

File: client/src/components/Task/TaskModal.jsx

Clicking delete removes the task forever with zero warning!

Fix: Add window.confirm() before deleteTask():
if (window.confirm("Delete this task?")) {
await deleteTask(task._id)
}
1 line fix!!

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions