Checking value before initializing date in revision curation.

This commit is contained in:
DebaucheryLibrarian 2025-11-02 18:26:54 +01:00
parent 880d6369e4
commit ac1e44f427
1 changed files with 2 additions and 2 deletions

View File

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