We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7450bd commit 9d83e32Copy full SHA for 9d83e32
ui/app/common/domain/services/conditionsService.js
@@ -31,7 +31,7 @@ angular.module('bahmni.common.domain')
31
}));
32
});
33
34
- return promises[promises.length - 1];
+ return promises.length > 0 ? Promise.all(promises) : Promise.resolve({});
35
};
36
37
this.getConditionHistory = function (patientUuid) {
0 commit comments