Skip to content

Commit

Permalink
Merge branch '10.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Nov 13, 2024
2 parents 3d96864 + 2233a08 commit 7d2c1ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/openchs-android/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"lodash": "4.17.21",
"moment": "2.29.4",
"native-base": "3.4.9",
"openchs-models": "1.32.16",
"openchs-models": "1.32.19",
"jshashes": "1.0.8",
"prop-types": "15.8.1",
"react": "18.2.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/openchs-android/src/views/RootView.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ class RootView extends AbstractComponent {
try {
await authService.fetchAuthSettingsFromServer();
} catch (error) {
const i18n = this.getService(MessageService).getI18n();
getAvniError(error, i18n).then(avniError => AlertMessage(i18n.t('Error'), avniError.getDisplayMessage(), BackHandler.exitApp));
return AlertMessage('Error', 'Server under maintenance. Please try again after sometime.\n\nPlease kill the app and relaunch if stuck on logo screen.', BackHandler.exitApp);
}
}
const decisionParameters = await this.nextScreenDecisionParameters();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class CustomDashboardView extends AbstractComponent {
const dashboardFilterService = this.getService(DashboardFilterService);

let filterConfigs, asOnDateFilterUUID, asOnDateFilter, asOnDateFilterValue, filters, dashboard;
const hasDashboards = this.state.dashboards.length !== 0;
const hasDashboards = this.state.dashboards.length !== 0 && !_.isNil(this.state.activeDashboardUUID);
if (hasDashboards) {
dashboard = this.state.dashboards.find((x) => x.uuid === this.state.activeDashboardUUID);
filters = dashboardFilterService.getFilters(dashboard.uuid);
Expand Down

0 comments on commit 7d2c1ba

Please sign in to comment.