fix: null song art makes bad request

This commit is contained in:
Phan An 2022-07-24 22:26:13 +02:00
parent 9789933991
commit 35b7e952ca
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -8,7 +8,7 @@
@contextmenu.prevent="requestContextMenu"
@dblclick.prevent="play"
>
<span :style="{ backgroundImage: `url(${song.album_cover}), url(${defaultCover})` }" class="cover">
<span :style="{ backgroundImage: `url(${song.album_cover ?? ''}), url(${defaultCover})` }" class="cover">
<a class="control" @click.prevent="changeSongState" data-testid="play-control">
<icon :icon="song.playback_state === 'Playing' ? faPause : faPlay" class="text-highlight"/>
</a>