Skip to content

Commit 4320b00

Browse files
committed
fixing for review
1 parent a64c676 commit 4320b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TaskDetail.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export function TaskDetail({ task, isOpen, onClose, onUpdate, onDelete, onAddLab
291291
if (!newSubtask.trim()) return;
292292

293293
const newSubtaskItem = {
294-
id: crypto.randomUUID?.() || String(Date.now()),
294+
id: crypto.randomUUID?.() || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}-${Math.random().toString(36).substr(2, 9)}`,
295295
content: newSubtask.trim(),
296296
completed: false,
297297
createdAt: new Date().toISOString()

0 commit comments

Comments
 (0)