From d42ad8f3c149ab4733ff05a404cd835eb01d4a08 Mon Sep 17 00:00:00 2001 From: Timmy Crawford Date: Fri, 24 Feb 2017 16:44:29 -0800 Subject: [PATCH] Stats: Fix loading state on summarized views. --- client/my-sites/stats/stats-module/index.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/my-sites/stats/stats-module/index.jsx b/client/my-sites/stats/stats-module/index.jsx index b13232a3cf42d..9f3b804e117a9 100644 --- a/client/my-sites/stats/stats-module/index.jsx +++ b/client/my-sites/stats/stats-module/index.jsx @@ -58,6 +58,10 @@ class StatsModule extends Component { if ( ! nextProps.requesting && this.props.requesting ) { this.setState( { loaded: true } ); } + + if ( nextProps.query !== this.props.query && this.state.loaded ) { + this.setState( { loaded: false } ); + } } getModuleLabel() {