Skip to content

Commit

Permalink
BAH-3334 | Add. Null Check For Dashboard Config (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh authored Jul 18, 2024
1 parent ebb3021 commit d3f75d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angular.module('bahmni.common.displaycontrol.dashboard')
}).find(function (section) {
return section.type === Bahmni.Common.Constants.formsV2ReactDisplayControlType;
});
return section.dashboardConfig || null;
return (section && section.dashboardConfig !== undefined && section.dashboardConfig !== null) ? section.dashboardConfig : null;
};

if ($scope.patient !== undefined) {
Expand Down

0 comments on commit d3f75d8

Please sign in to comment.