Skip to content

Commit

Permalink
fix: At a glance total user metric always displays -
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishBarvaliya committed Feb 20, 2024
1 parent ff02625 commit 68f64e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dashboard/Apps/AppsIndex.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ class AppsIndex extends React.Component {
}

componentWillMount() {
AppsManager.getAllAppsIndexStats().then(() => {
this.forceUpdate();
});
document.body.addEventListener('keydown', this.focusField);
if (AppsManager.apps().length === 1) {
const [app] = AppsManager.apps();
this.props.navigate(`/apps/${app.slug}/browser`);
return;
}
document.body.addEventListener('keydown', this.focusField);
AppsManager.getAllAppsIndexStats().then(() => {
this.forceUpdate();
});
}

componentWillUnmount() {
Expand Down

0 comments on commit 68f64e8

Please sign in to comment.