Skip to content

Commit

Permalink
feat: move the order or adding a new log for animation
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Jul 24, 2022
1 parent 0b99833 commit 6fe2028
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/apps/ui/components/dashboard/SessionDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ async function addAExercise() {
}
}
addAExerciseLoading.value = false;
clearDataAndDismissAddAExerciseModal();
currentSessionDetails.logs.push({
name: exercise.name,
exercise_id: exercise.id,
Expand All @@ -272,10 +275,6 @@ async function addAExercise() {
throw jsons.message;
}
}
addAExerciseLoading.value = false;
clearDataAndDismissAddAExerciseModal();
} catch (e) {
loading.value = false;
addAExerciseLoading.value = false;
Expand Down

0 comments on commit 6fe2028

Please sign in to comment.