React warning fix, tasklist display update fix

pull/111/head
Piero Toffanin 2017-02-18 12:58:38 -05:00
rodzic 325723dcc0
commit 34298a20ab
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -34,7 +34,7 @@ class EditProjectDialog extends React.Component {
this.state = {
name: props.projectName,
descr: props.projectDescr
descr: props.projectDescr !== null ? props.projectDescr : ""
};
this.reset = this.reset.bind(this);

Wyświetl plik

@ -88,6 +88,8 @@ class TaskListItem extends React.Component {
if (errorThrown === "Not Found"){ // Don't translate this one
// Assume this has been deleted
if (this.props.onDelete) this.props.onDelete(this.state.task.id);
}else{
if (this.shouldRefresh()) this.refreshTimeout = setTimeout(() => this.refresh(), this.props.refreshInterval || 3000);
}
});
}