Display empty container until everything has loaded

top-report-refactor
Robert Joonas 3 years ago committed by Uku Taht
parent 48a01cadc9
commit af7d125049

@ -70,7 +70,6 @@ export default function VisitorGraph(props) {
fetchTopStats(site, query)
.then((res) => {
setTopStatData(res)
setLoading(LoadingState.updatingGraph)
let metric = getStoredMetric()
const availableMetrics = res.top_stats.filter(stat => !!stat.graph_metric).map(stat => stat.graph_metric)

Loading…
Cancel
Save