Merge pull request #5858 from artoscinote/ma_SCI_8921

Fix updating repository checklist to a blank one [SCI-8921]
This commit is contained in:
artoscinote 2023-07-25 12:49:35 +02:00 committed by GitHub
commit 6b42524d04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}
});
}