mirror of
https://github.com/usememos/memos.git
synced 2025-11-09 17:01:36 +08:00
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 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…
Add table
Reference in a new issue