From ff0e878865aa35580744527bd3558d40d28a9c88 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Thu, 21 May 2020 19:46:53 +0000 Subject: [PATCH] web: remove status page componentDidUpdate implementation It is not necessary to loadState when the timezone change as this is already managed by react engine. Moreover this method introduced a bug by shadowing the parent Refreshable, which is in charge of fetching status page when the tenant change. Change-Id: I9fd35446c7fe98ce4bbb992983ec1ab56f3d32c5 --- web/src/pages/Status.jsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/web/src/pages/Status.jsx b/web/src/pages/Status.jsx index 84555b5d24..53a80f6608 100644 --- a/web/src/pages/Status.jsx +++ b/web/src/pages/Status.jsx @@ -113,12 +113,6 @@ class StatusPage extends Refreshable { this.visibilityChangeEvent, this.visibilityListener) } - componentDidUpdate (prevProps) { - if (this.props.timezone !== prevProps.timezo) { - this.loadState() - } - } - setFilter = (filter) => { this.filter.value = filter this.setState({filter: filter})