Skip to content

Commit

Permalink
#1407 | Specify CustomDashboardType.None when loading all accessible …
Browse files Browse the repository at this point in the history
…dashboards from More->Dashboards section
  • Loading branch information
himeshr committed May 21, 2024
1 parent 54dd245 commit 944d37b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CustomDashboardService extends BaseService {
case CustomDashboardType.Secondary:
return [this.getOneSecondaryDashboard()];
case CustomDashboardType.None:
default:
return this.getDashboardsBasedOnPrivilege();
}
return [];
Expand Down
2 changes: 1 addition & 1 deletion packages/openchs-android/src/views/LandingView.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class LandingView extends AbstractComponent {
hideBackButton={true}/>}
{register && <RegisterView hideBackButton={true}/>}
{menu && <MenuView menuIcon={(name, style) => this.Icon(name, style)}/>}
{dashboard && <CustomDashboardView hideBackButton={true}/>}
{dashboard && <CustomDashboardView hideBackButton={true} customDashboardType={CustomDashboardType.None}/>}
{secondaryDashboardSelected && <CustomDashboardView
startSync={startSync && this.state.syncRequired}
icon={(name, style) => this.Icon(name, style)}
Expand Down

0 comments on commit 944d37b

Please sign in to comment.