Fixing typo
Этот коммит содержится в:
@@ -9,11 +9,11 @@ export default class ErrorBar extends React.Component {
|
||||
|
||||
this.onErrorChange = this.onErrorChange.bind(this);
|
||||
this.handleClose = this.handleClose.bind(this);
|
||||
this.prevTimmer = null;
|
||||
this.prevTimer = null;
|
||||
|
||||
this.state = ErrorStore.getLastError();
|
||||
if (this.state && this.state.message) {
|
||||
this.prevTimmer = setTimeout(this.handleClose, 10000);
|
||||
this.prevTimer = setTimeout(this.handleClose, 10000);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,14 +34,14 @@ export default class ErrorBar extends React.Component {
|
||||
onErrorChange() {
|
||||
var newState = ErrorStore.getLastError();
|
||||
|
||||
if (this.prevTimmer != null) {
|
||||
clearInterval(this.prevTimmer);
|
||||
this.prevTimmer = null;
|
||||
if (this.prevTimer != null) {
|
||||
clearInterval(this.prevTimer);
|
||||
this.prevTimer = null;
|
||||
}
|
||||
|
||||
if (newState) {
|
||||
this.setState(newState);
|
||||
this.prevTimmer = setTimeout(this.handleClose, 10000);
|
||||
this.prevTimer = setTimeout(this.handleClose, 10000);
|
||||
} else {
|
||||
this.setState({message: null});
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user