Checking value before initializing date in revision curation.
This commit is contained in:
parent
880d6369e4
commit
ac1e44f427
|
|
@ -300,7 +300,7 @@ const curatedRevisions = computed(() => revisions.value.map((revision) => {
|
||||||
}))];
|
}))];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dateKeys.includes(key)) {
|
if (dateKeys.includes(key) && value) {
|
||||||
return [key, new Date(value)];
|
return [key, new Date(value)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -334,7 +334,7 @@ const curatedRevisions = computed(() => revisions.value.map((revision) => {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dateKeys.includes(delta.key)) {
|
if (dateKeys.includes(delta.key) && delta.value) {
|
||||||
return {
|
return {
|
||||||
...delta,
|
...delta,
|
||||||
value: new Date(delta.value),
|
value: new Date(delta.value),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue