Skip to content

Commit c7474f2

Browse files
layershifterlevithomason
authored andcommitted
fix(Docs): fix support for IE (#844)
1 parent 194e02d commit c7474f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/app/Components/ComponentDoc/ComponentExamples.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import _ from 'lodash'
12
import React, { Component, createElement, PropTypes } from 'react'
23

34
import { exampleContext } from 'docs/app/utils'
@@ -12,8 +13,7 @@ export default class ComponentExamples extends Component {
1213
renderExample = () => {
1314
const { name } = this.props
1415

15-
const examplePath = exampleContext.keys()
16-
.find(path => new RegExp(`${name}/index.js$`).test(path))
16+
const examplePath = _.find(exampleContext.keys(), path => new RegExp(`${name}/index.js$`).test(path))
1717

1818
return examplePath && createElement(exampleContext(examplePath).default)
1919
}

0 commit comments

Comments
 (0)