From 285a0af7c122f8168aa931fc857d04a4f03d2b73 Mon Sep 17 00:00:00 2001 From: wvffle Date: Mon, 18 Jul 2022 00:59:45 +0000 Subject: [PATCH] Fix playlist card urls --- front/src/components/playlists/Card.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)