Skip to content

Commit

Permalink
RA-1913: Core Apps Program Status widget doesn't handle existing pati…
Browse files Browse the repository at this point in the history
…ent programs with retired states
  • Loading branch information
mogoodrich committed Apr 16, 2021
1 parent 9e324bc commit d960bb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ export default class ProgramStatusController {
angular.forEach(this.patientProgram.states, (patientState) => {
let workflow = this.getWorkflowForState(patientState.state);

if (workflow !== null) { // TODO: better handle if state can't be matched to workflow, see UHM-5266; right now we just "drop" the state
if (workflow != null) { // TODO: better handle if state can't be matched to workflow, right now we just "drop" the state
if (!(workflow.uuid in this.sortedStatesByWorkflow)) {
this.sortedStatesByWorkflow[workflow.uuid] = [];
}
Expand Down

0 comments on commit d960bb6

Please sign in to comment.