Skip to content

Commit 3af3102

Browse files
committed
Don't use select prop for the undefined previous state
Fixes #27, #28
1 parent e8924b1 commit 3af3102

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/LogMonitorEntry.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ export default class LogMonitorEntry extends Component {
4242
theme={this.props.theme}
4343
keyName={'state'}
4444
data={this.props.select(state)}
45-
previousData={this.props.select(this.props.previousState)}
45+
previousData={
46+
typeof this.props.previousState !== 'undefined' ?
47+
this.props.select(this.props.previousState) :
48+
undefined
49+
}
4650
expandRoot={this.props.expandStateRoot}
4751
style={styles.tree} />
4852
);

0 commit comments

Comments
 (0)