Bug 1733650 - Intermittent Failures View should request data only once

Both `updateData` (initiated by `didComponentUpdate`) and `updateState` took
care of changes to url parameters.
This commit is contained in:
Sebastian Hengst 2021-10-01 19:13:41 +02:00
Родитель dccb26f0be
Коммит 164493c819
1 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -41,17 +41,6 @@ const withView = (defaultState) => (WrappedComponent) => {
this.setQueryParams();
}
componentDidUpdate(prevProps) {
const { location } = this.props;
// update all data if the user edits dates, tree or bug via the query params
if (prevProps.location.search !== location.search) {
this.checkQueryValidation(
parseQueryParams(location.search),
this.state.initialParamsSet,
);
}
}
setQueryParams = () => {
const { location, history } = this.props;
const { startday, endday, tree, bug } = this.state;