From 6b29f5500e4000a4ad351381900872430ff989ee Mon Sep 17 00:00:00 2001 From: Haaxor1689 Date: Sun, 10 Nov 2024 22:50:03 +0100 Subject: [PATCH] Don't clone with collection name --- src/components/builder/TalentBuilder.tsx | 1 + src/server/api/routers/collection.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/builder/TalentBuilder.tsx b/src/components/builder/TalentBuilder.tsx index 7aec138..95326ba 100644 --- a/src/components/builder/TalentBuilder.tsx +++ b/src/components/builder/TalentBuilder.tsx @@ -146,6 +146,7 @@ const TalentBuilder = (props: Props) => { ...values, id: newId, name: `${values.name} (copy)`, + collection: null, public: false, createdBy: null, createdById: null, diff --git a/src/server/api/routers/collection.ts b/src/server/api/routers/collection.ts index d9ce0ba..93e8d27 100644 --- a/src/server/api/routers/collection.ts +++ b/src/server/api/routers/collection.ts @@ -111,7 +111,8 @@ export const exportCollection = adminProcedure({ name: l.name, ranks: l.ranks, description: l.description, - requires: l.requires + requires: l.requires, + spellIds: l.spellIds } ) }))