From db273210fd28cba295b2cf68ef39fdffa737d1c3 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 28 Mar 2023 15:47:14 +0100 Subject: [PATCH] Fix broken build --- .../110-mongodb-security/encryption/100-encryption-at-rest.md | 3 ++- src/lib/roadmap-topic.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/data/roadmaps/mongodb/content/110-mongodb-security/encryption/100-encryption-at-rest.md b/src/data/roadmaps/mongodb/content/110-mongodb-security/encryption/100-encryption-at-rest.md index 66192bddc..134007983 100644 --- a/src/data/roadmaps/mongodb/content/110-mongodb-security/encryption/100-encryption-at-rest.md +++ b/src/data/roadmaps/mongodb/content/110-mongodb-security/encryption/100-encryption-at-rest.md @@ -31,7 +31,8 @@ To enable encryption at rest in MongoDB, you have to perform the following steps - **Enable encryption**: Turn on the `encryptWith` parameter in the WiredTiger storage engine. Example `mongod.conf` file: -```yml + +```yaml storage: wiredTiger: engineConfig: diff --git a/src/lib/roadmap-topic.ts b/src/lib/roadmap-topic.ts index e9f392d25..61ad6daa7 100644 --- a/src/lib/roadmap-topic.ts +++ b/src/lib/roadmap-topic.ts @@ -46,7 +46,8 @@ function generateBreadcrumbs(topicUrl: string, topicFiles: Record { const topicFile = topicFiles[breadCrumbUrl]; - const topicFileContent = topicFile.file; + + const topicFileContent = topicFile?.file; const firstHeading = topicFileContent?.getHeadings()?.[0];