fix: remove warning where a Date was wrong

This commit is contained in:
Jacob Overgaard
2024-05-21 13:43:51 +02:00
parent 352ecb65d2
commit 30dd237d40

View File

@@ -274,7 +274,9 @@ export class UmbRollbackModalElement extends UmbModalBaseElement<UmbRollbackModa
get currentVersionHeader() {
return (
this.localize.date(this.currentVersion?.date || '', this.#localizeDateOptions) + ' - ' + this.currentVersion?.user
this.localize.date(this.currentVersion?.date ?? new Date(), this.#localizeDateOptions) +
' - ' +
this.currentVersion?.user
);
}