Skip to content

Commit 9d83e32

Browse files
authored
BAH-4226 | Fixing condition save (#1036)
1 parent e7450bd commit 9d83e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/app/common/domain/services/conditionsService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ angular.module('bahmni.common.domain')
3131
}));
3232
});
3333

34-
return promises[promises.length - 1];
34+
return promises.length > 0 ? Promise.all(promises) : Promise.resolve({});
3535
};
3636

3737
this.getConditionHistory = function (patientUuid) {

0 commit comments

Comments
 (0)