diff --git a/src/containers/SubjectPage/components/Topic.tsx b/src/containers/SubjectPage/components/Topic.tsx index 8266433f24..6c07dc575d 100644 --- a/src/containers/SubjectPage/components/Topic.tsx +++ b/src/containers/SubjectPage/components/Topic.tsx @@ -62,6 +62,7 @@ const Topic = ({ subTopicId, topic, resourceTypes, + showResources, }: Props) => { const { topicId: urnTopicId } = useUrnIds(); const [showContent, setShowContent] = useState(false); @@ -98,7 +99,7 @@ const Topic = ({ }, [topicId]); const resources = useMemo(() => { - if (topic.subtopics) { + if (topic.subtopics && showResources) { return (