Skip to content

Commit 7e976bf

Browse files
khiga8iansan5653
andauthored
Update lib/utils/get-element-type.js
Co-authored-by: Ian Sanders <[email protected]>
1 parent bfbbfbe commit 7e976bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/get-element-type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function getElementType(context, node) {
1212
const rawElement = elementType(node)
1313
if (!settings) return rawElement
1414

15-
const componentMap = settings['github']?.components
15+
const componentMap = settings.github && settings.github.components
1616
if (!componentMap) return rawElement
1717
const component = componentMap[rawElement]
1818
if (!component) return rawElement

0 commit comments

Comments
 (0)