Skip to content

Commit

Permalink
fix: side effect with new variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nsenave committed Oct 3, 2023
1 parent f61541c commit eb50b0c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public LunaticAddShapeToCalculatedVariables(EnoQuestionnaire enoQuestionnaire, S
@Override
public void apply(Questionnaire lunaticQuestionnaire) {
List<VariableType> lunaticCalculatedVariables = lunaticQuestionnaire.getVariables().stream()
.filter(VariableType.class::isInstance)
.map(VariableType.class::cast)
.filter(variableType -> variableType.getVariableType().equals(VariableTypeEnum.CALCULATED))
.toList();
Expand Down

0 comments on commit eb50b0c

Please sign in to comment.