kopia lustrzana https://github.com/OpenDroneMap/WebODM
React warning fix, tasklist display update fix
rodzic
325723dcc0
commit
34298a20ab
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue