Planner: uniquePlanName beim Kopieren anwenden

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
xziino 2026-05-22 12:29:32 +02:00
parent be9d050036
commit 84064669d3

View File

@ -81,7 +81,7 @@ function copyPlan(id) {
const copy = { const copy = {
...JSON.parse(JSON.stringify(orig)), ...JSON.parse(JSON.stringify(orig)),
id: crypto.randomUUID(), id: crypto.randomUUID(),
name: orig.name + ' (Kopie)', name: uniquePlanName(orig.name + ' (Kopie)'),
createdAt: Date.now(), createdAt: Date.now(),
updatedAt: Date.now() updatedAt: Date.now()
}; };