Fix mistake

This commit is contained in:
Moritz Dieing 2021-03-10 20:46:13 +01:00
parent 1f1db955d3
commit d1eccc7ec5

View File

@ -119,7 +119,7 @@ public class TypeAssumptionField extends HorizontalLayout implements LocaleChang
.bind(o -> variableInputField.getEmptyValue(), null); .bind(o -> variableInputField.getEmptyValue(), null);
variableInputField.setReadOnly(false); variableInputField.setReadOnly(false);
typeBinder.forField(typeInputField) typeBinder.forField(typeInputField)
.withValidator(type -> (hasCorrectVariable(type) || isEmpty()), StringUtils.EMPTY) .withValidator(type -> (hasCorrectType(type) || isEmpty()), StringUtils.EMPTY)
.bind(o -> typeInputField.getEmptyValue(), null); .bind(o -> typeInputField.getEmptyValue(), null);
typeInputField.setReadOnly(false); typeInputField.setReadOnly(false);
} }