fix(core): fix meta.xxx is undefined (#6321)

This commit is contained in:
EYHN
2024-03-26 08:53:14 +00:00
parent b6bba523ff
commit 16063340d0
6 changed files with 11 additions and 11 deletions

View File

@@ -163,7 +163,7 @@ const DetailPageImpl = memo(function DetailPageImpl() {
const updatedDate = linkedPage.meta$.value.updatedDate;
const createDate = linkedPage.meta$.value.createDate;
return updatedDate ? new Date(updatedDate) : new Date(createDate);
return new Date(updatedDate || createDate || Date.now());
};
page.setMode(mode);