Fix issue arising from last commits refactor where multiple calls to edit workout start date/note would create multiple instances of the dom

This commit is contained in:
Peter Stockings
2023-07-12 19:50:51 +10:00
parent c457002d1e
commit 81882e1969
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<div id="edit-start-date" hx-target="this" hx-swap="innerHTML swap:0.5s">
<div id="edit-start-date" hx-target="this" hx-swap="outerHTML swap:0.5s">
{% if is_edit|default(false, true) == false %}
<span class="text-base font-normal text-gray-500">{{ strftime(start_date, "%b %d %Y") }}</span>
<a class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"