chore: update memo property checks
This commit is contained in:
parent
506d2ed8ca
commit
aae3e8ae64
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ interface Props {
|
||||||
|
|
||||||
const MemoDetailSidebar = ({ memo, className }: Props) => {
|
const MemoDetailSidebar = ({ memo, className }: Props) => {
|
||||||
const t = useTranslate();
|
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;
|
const hasSpecialProperty = property.hasLink || property.hasTaskList || property.hasCode || property.hasIncompleteTasks;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue