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