diff --git a/front/src/components/playlists/Card.vue b/front/src/components/playlists/Card.vue index 0c501a256..4a546216a 100644 --- a/front/src/components/playlists/Card.vue +++ b/front/src/components/playlists/Card.vue @@ -14,8 +14,7 @@ const props = defineProps() const store = useStore() const images = computed(() => { - // TODO (wvffle): What is slicing for? is it 'http'? - const urls = props.playlist.album_covers.map(url => store.getters['instance/absoluteUrl'](url).slice(0, 4)) + const urls = props.playlist.album_covers.slice(0, 4).map(url => store.getters['instance/absoluteUrl'](url)) while (urls.length < 4) { urls.push(defaultCover)