Skip to content

Commit

Permalink
Merge pull request #51 from opendevise/asciidoc-extension-registered-…
Browse files Browse the repository at this point in the history
…helper-fix

add missing guard in asciidocExtensionRegistered helper
  • Loading branch information
rwinch authored Jan 12, 2023
2 parents 3fbeedf + 2bef05a commit 2b9eb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/asciidocExtensionRegistered.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = (requireRequest, { data }) => {
const { componentVersion } = data.root.page
if (!componentVersion || !componentVersion.asciidoc) return
if (!componentVersion || !componentVersion.asciidoc || !componentVersion.extensions) return
const cache = data.extensionCache || (data.extensionCache = {})
let extension
if (requireRequest in cache) {
Expand Down

0 comments on commit 2b9eb45

Please sign in to comment.