Fix issue with prefilling mapping

This commit is contained in:
George Kalampokis 2022-03-01 17:11:14 +02:00
parent 1dfcad7e88
commit 1e572b3214
1 changed files with 3 additions and 1 deletions

View File

@ -143,7 +143,9 @@ public class PrefillingMapper {
case COMBO_BOX:
if (parsedValues.isEmpty())
parsedValues.add(parsedValue);
properties.put(id, parseComboBoxValues(node, parsedValues));
if (!parsedValues.stream().allMatch(Objects::isNull)) {
properties.put(id, parseComboBoxValues(node, parsedValues));
}
break;
case TAGS:
properties.put(id, mapper.valueToTree(parseTags(parsedValue)).toString());