Correction d'un bug sur les dates vides

This commit is contained in:
Damien Broqua 2022-04-16 17:21:07 +02:00
parent 12ca71e643
commit a3c03a1569

View file

@ -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);