Avoid crash in unmount if journal is null

This commit is contained in:
Justin Stephenson 2021-11-17 11:52:15 -05:00
parent 1d81c8e828
commit da32f4f344

View file

@ -285,7 +285,9 @@ class Logs extends React.Component {
}
componentWillUnmount() {
this.journalCtl.stop();
if (this.journalCtl) {
this.journalCtl.stop();
}
this.setState({
serverTimeOffset: null,
cursor: null,