Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Apr 2, 2016
2 parents 420a1fb + 486381a commit 9933313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LogMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class LogMonitor extends Component {
skippedActionIds: PropTypes.array,
monitorState: PropTypes.shape({
initialScrollTop: PropTypes.number
}),
}).isRequired,

preserveScrollTop: PropTypes.bool,
select: PropTypes.func.isRequired,
Expand Down Expand Up @@ -95,7 +95,7 @@ export default class LogMonitor extends Component {

componentDidMount() {
const node = this.refs.container;
if (!node) {
if (!node || !this.props.monitorState) {
return;
}

Expand Down

0 comments on commit 9933313

Please sign in to comment.