Correction d'un bug sur les dates vides
This commit is contained in:
parent
12ca71e643
commit
a3c03a1569
1 changed files with 3 additions and 1 deletions
|
@ -242,7 +242,9 @@ class Albums extends Pages {
|
||||||
|
|
||||||
const item = {
|
const item = {
|
||||||
...album.toJSON(),
|
...album.toJSON(),
|
||||||
released: formatDate(album.released, "MM/dd/yyyy"),
|
released: album.released
|
||||||
|
? formatDate(album.released, "MM/dd/yyyy")
|
||||||
|
: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setPageContent("item", item);
|
this.setPageContent("item", item);
|
||||||
|
|
Loading…
Reference in a new issue