diff --git a/src/components/Editor/TopicSelect/TopicSelect.tsx b/src/components/Editor/TopicSelect/TopicSelect.tsx index 5930f959..8ab5034e 100644 --- a/src/components/Editor/TopicSelect/TopicSelect.tsx +++ b/src/components/Editor/TopicSelect/TopicSelect.tsx @@ -56,7 +56,7 @@ export const TopicSelect = (props: TopicSelectProps) => { return item.label } - const isMainTopic = item.id === props.mainTopic.id + const isMainTopic = item.id === props.mainTopic?.id return (