Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Fix superset not removing on delete exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitSuda committed Nov 11, 2022
1 parent 1e6d4c6 commit df9e223
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ fun WorkoutEditorComponent(
}
}

fun handleDeleteExercise(item: LogEntriesWithExerciseJunction) {
handleRemoveFromSuperset(item)
onDeleteExerciseFromWorkout(item)
}

LazyColumn(
modifier = Modifier
.fillMaxSize()
Expand Down Expand Up @@ -196,7 +201,7 @@ fun WorkoutEditorComponent(
)
},
onDeleteExercise = {
onDeleteExerciseFromWorkout(logEntriesWithJunctionItem)
handleDeleteExercise(logEntriesWithJunctionItem)
},
onUpdateWarmUpSets = {
onUpdateWarmUpSets(logEntriesWithJunctionItem, it.toExerciseLogEntries())
Expand Down

0 comments on commit df9e223

Please sign in to comment.