Add duplicate task button in task modal 📋
File: client/src/components/Task/TaskModal.jsx
Sometimes you want to create a similar task
but have to fill everything from scratch 💀 fr!!
Fix: add duplicate button in modal footer:
const handleDuplicate = async () => {
await addTask({
title: ${form.title} (copy),
description: form.description,
priority: form.priority,
tags: form.tags.split(',').map(t => t.trim()),
status: 'backlog'
})
onClose()
}
📋 Duplicate
addTask already exists in BoardContext ✅
~10 lines! No backend changes needed 🎯
Add duplicate task button in task modal 📋
File: client/src/components/Task/TaskModal.jsx
Sometimes you want to create a similar task
but have to fill everything from scratch 💀 fr!!
Fix: add duplicate button in modal footer:
const handleDuplicate = async () => {
await addTask({
title:
${form.title} (copy),description: form.description,
priority: form.priority,
tags: form.tags.split(',').map(t => t.trim()),
status: 'backlog'
})
onClose()
}
📋 Duplicate
addTask already exists in BoardContext ✅
~10 lines! No backend changes needed 🎯