forked from xziino/ff14-mitigator
Planner: uniquePlanName beim Kopieren anwenden
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
be9d050036
commit
84064669d3
@ -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()
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user