Skip to content

Commit

Permalink
Fixed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnmcphail committed Apr 13, 2019
1 parent a64d465 commit 729c4d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class Dev404Page extends React.Component {

handlePageSearch(event) {
event.preventDefault()
let tempPages = [...this.state.propPages]
let searchTerm = new RegExp(`${this.state.pageSearchTerm}`)
const tempPages = [...this.state.propPages]
const searchTerm = new RegExp(`${this.state.pageSearchTerm}`)
this.setState({
pages: tempPages.filter(p => searchTerm.test(p.path)),
})
Expand Down

0 comments on commit 729c4d9

Please sign in to comment.