Skip to content

Commit ffba115

Browse files
committed
fix: remove warning where a Date was wrong
1 parent 3eb67b0 commit ffba115

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/packages/documents/documents/modals/rollback/rollback-modal.element.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ export class UmbRollbackModalElement extends UmbModalBaseElement<UmbRollbackModa
274274

275275
get currentVersionHeader() {
276276
return (
277-
this.localize.date(this.currentVersion?.date || '', this.#localizeDateOptions) + ' - ' + this.currentVersion?.user
277+
this.localize.date(this.currentVersion?.date ?? new Date(), this.#localizeDateOptions) +
278+
' - ' +
279+
this.currentVersion?.user
278280
);
279281
}
280282

0 commit comments

Comments
 (0)