Skip to content

Commit

Permalink
Ignore case when comparing the selected observation level name with t…
Browse files Browse the repository at this point in the history
…raits' observation level names.
  • Loading branch information
abatac committed Aug 10, 2023
1 parent a20bb80 commit ca106cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ public void run() {

// This is BMS specific. Remove the traits that are not part of the selected Observation Level.
// To ensure that only relevant traits are included in the imported study/field.
studyDetails.getTraits().removeIf(t -> t.getObservationLevelNames() != null && !t.getObservationLevelNames().contains(selectedObservationLevel.getObservationLevelName()));
studyDetails.getTraits().removeIf(t -> t.getObservationLevelNames() != null &&
t.getObservationLevelNames().stream().noneMatch(s -> s.equalsIgnoreCase(selectedObservationLevel.getObservationLevelName())));

loadStudy();
// Check if user should save yet
Expand Down

0 comments on commit ca106cb

Please sign in to comment.