small fix to prevent JS error from displaying when no track is loaded
This commit is contained in:
		
							parent
							
								
									8a2248f3a8
								
							
						
					
					
						commit
						04554b338e
					
				| @ -44,7 +44,7 @@ | |||||||
|               <b-button title="Favourite" |               <b-button title="Favourite" | ||||||
|                         variant="link" class="m-0" |                         variant="link" class="m-0" | ||||||
|                         @click="toggleFavourite"> |                         @click="toggleFavourite"> | ||||||
|                 <Icon :icon="track.favourite ? 'heart-fill' : 'heart'" /> |                 <Icon :icon="track && track.favourite ? 'heart-fill' : 'heart'" /> | ||||||
|               </b-button> |               </b-button> | ||||||
|               <b-button id="player-volume-btn" variant="link" title="Volume"> |               <b-button id="player-volume-btn" variant="link" title="Volume"> | ||||||
|                 <Icon :icon="muteActive ? 'volume-mute-fill' : 'volume-up-fill'" /> |                 <Icon :icon="muteActive ? 'volume-mute-fill' : 'volume-up-fill'" /> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user