compare value with correct tuple element

This commit is contained in:
laggron42
2023-07-26 16:55:05 +02:00
parent 5059133b8c
commit 50cef55be8

View File

@@ -3,7 +3,7 @@
<div class="form-label">{{ label }}</div>
<select class="form-select" name="{{ name }}" id="{{ id }}">
{% for option in options %}
<option value="{{ option[1] }}" {% if option[0] == value %}
<option value="{{ option[1] }}" {% if option[1] == value %}
selected
{% endif %} >{{ option[0] }}</option>
{% endfor %}