Showing poster in release album. Filtering empty items from album component.
This commit is contained in:
@@ -45,10 +45,12 @@
|
||||
|
||||
<script>
|
||||
function albumItems() {
|
||||
return this.items.map(item => ({
|
||||
...item,
|
||||
title: item.comment || (item.credit && `© ${item.credit}`) || (item.entity && `© ${item.entity.name}`),
|
||||
}));
|
||||
return this.items
|
||||
.filter(Boolean)
|
||||
.map(item => ({
|
||||
...item,
|
||||
title: item.comment || (item.credit && `© ${item.credit}`) || (item.entity && `© ${item.entity.name}`),
|
||||
}));
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user