fix issue of Loading not disappearing in Historical mode

This commit is contained in:
HF 2020-01-17 03:38:24 +01:00
parent 9207890b3c
commit 56370c548f

View File

@ -143,13 +143,16 @@ class HistorySelect extends React.Component {
}); });
return; return;
} }
this.setState({
submitting: false,
selectedDate,
});
newPos = (newPos < 0) ? (times.length - 1) : 0; newPos = (newPos < 0) ? (times.length - 1) : 0;
} }
selectedTime = times[newPos]; selectedTime = times[newPos];
this.setState({ this.setState({
times, times,
selectedDate,
selectedTime, selectedTime,
}); });
setTime(selectedDate, selectedTime); setTime(selectedDate, selectedTime);