Skip to content

Commit

Permalink
Update lib/utils/get-element-type.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Sanders <iansan5653@github.com>
  • Loading branch information
khiga8 and iansan5653 committed Jul 20, 2022
1 parent bfbbfbe commit 7e976bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/get-element-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function getElementType(context, node) {
const rawElement = elementType(node)
if (!settings) return rawElement

const componentMap = settings['github']?.components
const componentMap = settings.github && settings.github.components
if (!componentMap) return rawElement
const component = componentMap[rawElement]
if (!component) return rawElement
Expand Down

0 comments on commit 7e976bf

Please sign in to comment.