From 5a2a7b66bc4a93dc0990244f3bdaa086e4594f82 Mon Sep 17 00:00:00 2001 From: WhyAsh5114 Date: Sat, 31 Aug 2024 23:07:49 +0530 Subject: [PATCH] bugfix remove workoutsOfMesocycle to avoid zod invalid error --- .../[mesocycleId]/(components)/MesocycleBasicsTab.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/mesocycles/[mesocycleId]/(components)/MesocycleBasicsTab.svelte b/src/routes/mesocycles/[mesocycleId]/(components)/MesocycleBasicsTab.svelte index 3283733f..13055ad2 100644 --- a/src/routes/mesocycles/[mesocycleId]/(components)/MesocycleBasicsTab.svelte +++ b/src/routes/mesocycles/[mesocycleId]/(components)/MesocycleBasicsTab.svelte @@ -44,7 +44,8 @@ ...mesocycleData } = mesocycle; - const { id, userId, exerciseSplitId, ...mesocycleDataWithoutIds } = mesocycleData; + const { id, userId, exerciseSplitId, workoutsOfMesocycle, ...mesocycleDataWithoutIds } = + mesocycleData; const mesocycleWithoutIds: FullMesocycleWithoutIds = { ...mesocycleDataWithoutIds, mesocycleCyclicSetChanges: mesocycleCyclicSetChanges.map((setChange) => {