Merge pull request #36 from danejur/master

small fix to prevent JS error from displaying when no track is loaded
This commit is contained in:
tamland 2021-05-20 18:58:05 +02:00 committed by GitHub
commit babaebeca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@
<b-button title="Favourite"
variant="link" class="m-0"
@click="toggleFavourite">
<Icon :icon="track.favourite ? 'heart-fill' : 'heart'" />
<Icon :icon="track && track.favourite ? 'heart-fill' : 'heart'" />
</b-button>
<b-button id="player-volume-btn" variant="link" title="Volume">
<Icon :icon="muteActive ? 'volume-mute-fill' : 'volume-up-fill'" />