chore: update memo property checks

This commit is contained in:
Steven 2024-08-13 23:29:40 +08:00
parent 506d2ed8ca
commit aae3e8ae64

View File

@ -11,7 +11,7 @@ interface Props {
const MemoDetailSidebar = ({ memo, className }: Props) => {
const t = useTranslate();
const property = memo.property as MemoProperty;
const property = MemoProperty.fromPartial(memo.property || {});
const hasSpecialProperty = property.hasLink || property.hasTaskList || property.hasCode || property.hasIncompleteTasks;
return (