Fix bug where upon editing topset it would change exercise to Squat (1st in list)

This commit is contained in:
Peter Stockings
2022-12-04 17:22:24 +11:00
parent 4ff578f8b6
commit 947015f2a4
2 changed files with 4 additions and 4 deletions

View File

@@ -7,9 +7,9 @@
class="block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500"
name="exercise_id">
{% for exercise in exercises|default([], true) %}
<option value="{{ exercise['ExerciseId'] }}" {% if exercise['ExerciseId']==exercise_id %} selected {% endif
%}>{{
exercise['Name']}}</option>
<option value="{{ exercise['ExerciseId'] }}" {% if exercise['Name']==exercise_name %} selected {% endif %}>
{{exercise['Name']}}
</option>
{% endfor %}
</select>
{% endif %}