Skip to content

Commit

Permalink
#1540 | Nil check for CustomDashboard activeDashboardUUID
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Oct 30, 2024
1 parent e43462d commit c2a4bb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class CustomDashboardView extends AbstractComponent {

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

0 comments on commit c2a4bb1

Please sign in to comment.