diff --git a/resource-provider/helper.js b/resource-provider/helper.js index ce3242a..83ef725 100644 --- a/resource-provider/helper.js +++ b/resource-provider/helper.js @@ -30,7 +30,9 @@ async function populateResources() { Object.values(SUBJECTS).forEach((subject) => { Object.values(subject.topics).forEach((topic) => { - topic.resources = topicResources[topic.id]; + if (topic.id in topicResources) { + topic.resources = topicResources[topic.id]; + } }); }); }