{BUGFIX} On album update when no day is set for released field
This commit is contained in:
parent
1a9728fce6
commit
71c120564a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue