{BUGFIX} On album update when no day is set for released field

This commit is contained in:
Damien Broqua 2024-01-19 08:04:21 +01:00
parent 1a9728fce6
commit 71c120564a

View File

@ -33,7 +33,7 @@ export const getAlbumDetails = async (id) => {
const res = await dis.getRelease(id);
if (res.released.includes("-00")) {
if (res.released && res.released.includes("-00")) {
const [year, month] = res.released.split("-");
res.released = new Date(year, parseInt(month, 10) - 1);
}