Bugfix: Attempting to update a set would fail due to including multiple elements for exercise_id, repetition, & weight
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<tr id="topset-{{ topset_id }}">
|
||||
<td class="p-0 sm:p-4 text-sm font-semibold text-gray-900 break-normal">
|
||||
{% if is_edit|default(false, true) == false %}
|
||||
<span class="cursor-pointer" hx-get="{{ url_for('goto_tag') }}"
|
||||
@@ -69,7 +69,7 @@
|
||||
<button
|
||||
class="inline-flex justify-center p-2 text-blue-600 rounded-full cursor-pointer hover:bg-blue-100 dark:text-blue-500 dark:hover:bg-gray-600"
|
||||
hx-put="{{ url_for('update_topset', person_id=person_id, workout_id=workout_id, topset_id=topset_id) }}"
|
||||
hx-include="[name='exercise_id'], [name='repetitions'], [name='weight']">
|
||||
hx-include="#topset-{{ topset_id }} * [name='exercise_id'],#topset-{{ topset_id }} * [name='repetitions'],#topset-{{ topset_id }} * [name='weight']">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
|
||||
stroke="currentColor" class="w-5 h-5">
|
||||
|
||||
Reference in New Issue
Block a user