From 8e39bf41427233e0f0192a405ec2d138487285e5 Mon Sep 17 00:00:00 2001 From: Nick Small Date: Sun, 12 Feb 2017 22:57:06 -0500 Subject: [PATCH] Show loading indicator when changing pages --- client/src/pages/Search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/Search.js b/client/src/pages/Search.js index 1417c9b5..268c1e47 100644 --- a/client/src/pages/Search.js +++ b/client/src/pages/Search.js @@ -445,13 +445,13 @@ export default class Search extends Page { @autobind onSelectQueryType(type) { - this.setState({queryType: type}, () => this.fetchData(this.props)) + this.setState({queryType: type}, () => this.loadData()) } @autobind goToReportsPage(reportsPageNum) { let pageNum = this.state.pageNum pageNum.reports = reportsPageNum - this.fetchData(this.props) + this.loadData() } }