Skip to content

Commit

Permalink
dont create links for artists without id
Browse files Browse the repository at this point in the history
  • Loading branch information
tamland committed Dec 28, 2023
1 parent 72d9a1d commit 37790a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/library/track/CellArtist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
<td class="d-none d-lg-table-cell">
<template v-for="(artist, index) in props.track.artists">
<span v-if="index > 0" :key="artist.id">, </span>
<router-link :key="`${artist.id}-link`" :to="{name: 'artist', params: { id: artist.id }}">
<router-link v-if="artist.id" :key="`${artist.id}-link`" :to="{name: 'artist', params: { id: artist.id }}">
{{ artist.name }}
</router-link>
<template v-else>
{{ artist.name }}
</template>
</template>
</td>
</template>

0 comments on commit 37790a1

Please sign in to comment.