Fix playlist card urls

This commit is contained in:
wvffle 2022-07-18 00:59:45 +00:00 committed by Georg Krause
parent a37835a9c2
commit 285a0af7c1
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,7 @@ const props = defineProps<Props>()
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)