mirror of
https://github.com/usememos/memos.git
synced 2025-02-20 21:30:55 +01:00
chore: update memo property checks
This commit is contained in:
parent
506d2ed8ca
commit
aae3e8ae64
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user