Skip to content

Commit 68f64e8

Browse files
fix: At a glance total user metric always displays -
1 parent ff02625 commit 68f64e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dashboard/Apps/AppsIndex.react.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ class AppsIndex extends React.Component {
115115
}
116116

117117
componentWillMount() {
118+
AppsManager.getAllAppsIndexStats().then(() => {
119+
this.forceUpdate();
120+
});
121+
document.body.addEventListener('keydown', this.focusField);
118122
if (AppsManager.apps().length === 1) {
119123
const [app] = AppsManager.apps();
120124
this.props.navigate(`/apps/${app.slug}/browser`);
121125
return;
122126
}
123-
document.body.addEventListener('keydown', this.focusField);
124-
AppsManager.getAllAppsIndexStats().then(() => {
125-
this.forceUpdate();
126-
});
127127
}
128128

129129
componentWillUnmount() {

0 commit comments

Comments
 (0)