From 34dbd5254058d5eb9f833eb90a4a4712102c67df Mon Sep 17 00:00:00 2001 From: WhyAsh5114 Date: Mon, 27 Jan 2025 17:11:45 +0530 Subject: [PATCH 1/2] ci: fix playwright import bug --- tsconfig.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 52195baf..e9831775 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,12 @@ "skipLibCheck": true, "sourceMap": true, "strict": true, - "moduleResolution": "bundler" + "moduleResolution": "bundler", + "baseUrl": ".", + "paths": { + "$lib": ["src/lib"], + "$lib/*": ["src/lib/*"] + } }, "files": [ "./node_modules/vite-plugin-pwa/client.d.ts", From 67cd9911308142776f4f62bdfc149c38d065bb89 Mon Sep 17 00:00:00 2001 From: WhyAsh5114 Date: Sat, 1 Feb 2025 13:11:00 +0530 Subject: [PATCH 2/2] fix: load bug when adding Myorep sets --- src/lib/utils/workoutUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/workoutUtils.ts b/src/lib/utils/workoutUtils.ts index 5eb7e071..72791293 100644 --- a/src/lib/utils/workoutUtils.ts +++ b/src/lib/utils/workoutUtils.ts @@ -178,7 +178,7 @@ export function createWorkoutExerciseInProgressFromMesocycleExerciseTemplate( exercise.changeType = null; } - if (['Straight', 'MyorepMatch'].includes(exercise.setType)) { + if (['Straight', 'MyorepMatch', 'Myorep'].includes(exercise.setType)) { newSets.map((set, setIndex) => { if (setIndex) set.load = newSets[0].load; });