We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7019510 commit 0d5254dCopy full SHA for 0d5254d
ui/app/common/domain/services/conditionsService.js
@@ -6,13 +6,7 @@ angular.module('bahmni.common.domain')
6
var conditionsToBeSaved = _.reject(conditions, function (condition) {
7
return condition.onSetDate === null || Number.isInteger(condition.onSetDate);
8
});
9
- var newConditions = _.filter(conditionsToBeSaved, function (condition) {
10
- return !condition.uuid;
11
- });
12
- var existingConditions = _.filter(conditionsToBeSaved, function (condition) {
13
- return condition.uuid;
14
15
- conditionsToBeSaved = newConditions.length ? newConditions : existingConditions;
+
16
var promises = [];
17
18
_.forEach(conditionsToBeSaved, function (conditionToSave) {
0 commit comments