Avoid crash in unmount if journal is null
This commit is contained in:
parent
1d81c8e828
commit
da32f4f344
1 changed files with 3 additions and 1 deletions
|
|
@ -285,7 +285,9 @@ class Logs extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
if (this.journalCtl) {
|
||||||
this.journalCtl.stop();
|
this.journalCtl.stop();
|
||||||
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
serverTimeOffset: null,
|
serverTimeOffset: null,
|
||||||
cursor: null,
|
cursor: null,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue