From c6e6d6090e610c543fdcba1135b08d54f750c050 Mon Sep 17 00:00:00 2001 From: Diptesh Choudhuri Date: Thu, 2 Jan 2025 20:10:38 +0530 Subject: [PATCH] fix(frontend): display items --- apps/frontend/app/components/fitness.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/app/components/fitness.tsx b/apps/frontend/app/components/fitness.tsx index 8c9dbc9708..876f3816c7 100644 --- a/apps/frontend/app/components/fitness.tsx +++ b/apps/frontend/app/components/fitness.tsx @@ -242,9 +242,9 @@ export const ExerciseHistory = (props: { .exhaustive(), ); const exercise = - workoutDetails.details.information.exercises[props.exerciseIdx]; + workoutDetails?.details.information.exercises[props.exerciseIdx]; const { data: exerciseDetails } = useQuery( - getExerciseDetailsQuery(exercise.id), + getExerciseDetailsQuery(exercise?.id || ""), ); const isInSuperset = props.supersetInformation?.find((s) => s.exercises.includes(props.exerciseIdx),