Skip to content

Commit bbe5c4e

Browse files
committed
fix(playlist): song in playlist mark id
1 parent fee9cc4 commit bbe5c4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

views/components/playlist/popover.templ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ templ PlaylistsPopover(index int, songId string, playlists []entities.Playlist,
3737
),
3838
}
3939
hx-swap="innerHTML"
40-
hx-target={ fmt.Sprintf("#song-in-playlist-%s", songId) }
40+
hx-target={ fmt.Sprintf("#song-in-playlist-%s", playlist.PublicId) }
4141
hx-trigger="click"
4242
data-loading-target="#loading"
4343
data-loading-class-remove="hidden"
@@ -51,7 +51,7 @@ templ PlaylistsPopover(index int, songId string, playlists []entities.Playlist,
5151
}
5252
>
5353
<div
54-
id={ fmt.Sprintf("song-in-playlist-%s", songId) }
54+
id={ fmt.Sprintf("song-in-playlist-%s", playlist.PublicId) }
5555
>
5656
<div
5757
class={

0 commit comments

Comments
 (0)