Skip to content

Commit

Permalink
Prevent error messages in console
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Jan 22, 2020
1 parent 4bc9e31 commit df7cfa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/GridArrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default class GridArrow extends Component {
}

componentDidMount() {
this.componentDidUpdate()
this.componentWillReceiveProps()
}

Expand Down Expand Up @@ -109,6 +108,8 @@ export default class GridArrow extends Component {
}

componentDidUpdate(prevProps, prevState) {
if (this.valueElement == null) return

let {onTypesetFinish = () => {}} = this.props

for (let el of this.valueElement.querySelectorAll(
Expand Down

0 comments on commit df7cfa1

Please sign in to comment.