Skip to content

Commit

Permalink
Merge pull request #124 from dhis2/rule-variable-types
Browse files Browse the repository at this point in the history
fix: RuleVariableType was verified using the wrong type
  • Loading branch information
jbee authored Mar 13, 2024
2 parents 8492d59 + fab65a0 commit ee1bbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsMain/kotlin/org/hisp/dhis/rules/RuleVariableJs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ data class RuleVariableJs(
){
init {
require(RULE_VALUE_TYPES.contains(fieldType)) { "RuleValueType type must be one of: $RULE_VALUE_TYPES" }
require(TYPES.contains(fieldType)) { "RuleVariableType type must be one of: $TYPES" }
require(TYPES.contains(type)) { "RuleVariableType type must be one of: $TYPES" }
}

companion object {
Expand Down

0 comments on commit ee1bbad

Please sign in to comment.