Skip to content

Commit

Permalink
"Place of service distance" criteria for a Visit Occurrence criteria…
Browse files Browse the repository at this point in the history
… is misfunctional #2814 (#2841)

(cherry picked from commit 75904a0)
  • Loading branch information
anton-abushkevich committed Mar 9, 2023
1 parent c83c1f3 commit 87c0556
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/components/cohortbuilder/components/VisitDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ define([
...constants.visitDetailAttributes.addPlaceServiceLocation,
selected: false,
action: function () {
if (self.Criteria.PlaceOfServiceLocation() === null) {
if (self.Criteria.PlaceOfServiceLocation() == null) {
self.Criteria.PlaceOfServiceLocation(ko.observable());
}
},
Expand All @@ -135,7 +135,7 @@ define([
...constants.visitDetailAttributes.addPlaceServiceDistance,
selected: false,
action: function () {
if (self.Criteria.PlaceOfServiceDistance() === null) {
if (self.Criteria.PlaceOfServiceDistance() == null) {
self.Criteria.PlaceOfServiceDistance(new Range());
}
},
Expand Down
4 changes: 2 additions & 2 deletions js/components/cohortbuilder/components/VisitOccurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ define([
...constants.visitAttributes.addPlaceServiceLocation,
selected: false,
action: function () {
if (self.Criteria.PlaceOfServiceLocation() === null) {
if (self.Criteria.PlaceOfServiceLocation() == null) {
self.Criteria.PlaceOfServiceLocation(ko.observable());
}
},
Expand All @@ -132,7 +132,7 @@ define([
...constants.visitAttributes.addPlaceServiceDistance,
selected: false,
action: function () {
if (self.Criteria.PlaceOfServiceDistance() === null) {
if (self.Criteria.PlaceOfServiceDistance() == null) {
self.Criteria.PlaceOfServiceDistance(new Range());
}
},
Expand Down

0 comments on commit 87c0556

Please sign in to comment.