зеркало из https://github.com/mozilla/treeherder.git
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:
Родитель
dccb26f0be
Коммит
164493c819
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче