format
This commit is contained in:
parent
c3e15b236e
commit
e6796ba4ad
2 changed files with 4 additions and 6 deletions
|
@ -312,9 +312,8 @@
|
|||
getAlbumGenre: function () {
|
||||
if (this.data.type.includes('albums')) {
|
||||
let date = this.data.attributes.releaseDate;
|
||||
if (date == null || date === "") return "";
|
||||
const releaseDate = new Date(date);
|
||||
return `${this.data.relationships.tracks.data[0].attributes.genreNames[0]} · ${releaseDate.getFullYear()}`
|
||||
if (date == null || date === "") return "";
|
||||
return `${this.data.relationships.tracks.data[0].attributes.genreNames[0]} · ${new Date(date).getFullYear()}`
|
||||
}
|
||||
},
|
||||
async isInLibrary() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue