Fix updating repository checklist to a blank one [SCI-8921]

This commit is contained in:
Martin Artnik 2023-07-25 12:21:35 +02:00
parent e51054af48
commit 7dd7566080

View file

@ -48,7 +48,8 @@ var ChecklistColumnHelper = (function() {
optionClass: 'checkbox-icon',
selectAppearance: 'simple',
onChange: function() {
$hiddenField.val(JSON.stringify(dropdownSelector.getValues('#' + select)));
let currentValues = dropdownSelector.getValues('#' + select);
$hiddenField.val(currentValues.length ? JSON.stringify(currentValues) : null);
}
});
}