Fix error where your unable to add a topset to a empty workout

This commit is contained in:
Peter Stockings
2022-11-20 00:39:00 +11:00
parent e8827afa7f
commit a0c2eb856a

View File

@@ -35,7 +35,6 @@
</div> </div>
<div class="flow-root"> <div class="flow-root">
{% if workout['TopSets']|length > 0 %}
<table class="items-center w-full bg-transparent border-collapse"> <table class="items-center w-full bg-transparent border-collapse">
<thead> <thead>
<tr> <tr>
@@ -73,7 +72,6 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% endif %}
{% if workout['TopSets']|length == 0 %} {% if workout['TopSets']|length == 0 %}
<div class="bg-purple-100 rounded-lg py-5 px-6 mb-4 text-base text-purple-700 mb-3" role="alert"> <div class="bg-purple-100 rounded-lg py-5 px-6 mb-4 text-base text-purple-700 mb-3" role="alert">