Fix: unfollow not updating UI - use hx-swap=delete to remove element

This commit is contained in:
droideparanoico committed 2026-07-15 16:35:05 +02:00
1 parent a6d4f0e046
commit ab7a89b934
2 files changed
+2 -2

No files matched your search

@@ -10,7 +10,7 @@
<button class="btn btn-ghost btn-xs text-error"
hx-delete="/artists/{artist.mbid}"
hx-target="#artist-{artist.mbid}"
hx-swap="outerHTML"
hx-swap="delete"
hx-on::after-request="DiscDrop.refreshFeed()">
Unfollow
</button>