Checking value before initializing date in revision curation.
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user