Skip to content

Commit

Permalink
[Rahul] | BAH-3334 | Fix. Incorrect Accessing Of FormV2React Config
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh committed Jul 18, 2024
1 parent ebb3021 commit 8c515ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- 'release-*'
- 'fix-dashboard'
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_run:
Expand Down
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;

Check failure on line 20 in ui/app/common/displaycontrols/dashboard/directives/dashboard.js

View workflow job for this annotation

GitHub Actions / Build & Publish Docker Image & Helm Chart

There should be no spaces inside this paren

Check failure on line 20 in ui/app/common/displaycontrols/dashboard/directives/dashboard.js

View workflow job for this annotation

GitHub Actions / Build & Publish Docker Image & Helm Chart

There should be no spaces inside this paren

Check failure on line 20 in ui/app/common/displaycontrols/dashboard/directives/dashboard.js

View workflow job for this annotation

GitHub Actions / Build & Publish Docker Image & Helm Chart

Multiple spaces found before ':'
};

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

0 comments on commit 8c515ca

Please sign in to comment.