Commit aae3e8ae authored by Steven's avatar Steven

chore: update memo property checks

parent 506d2ed8
......@@ -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 (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment