From 7dd7566080b02933dc6a8b16f223ae59b7d881ed Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 25 Jul 2023 12:21:35 +0200 Subject: [PATCH] Fix updating repository checklist to a blank one [SCI-8921] --- .../javascripts/repositories/renderers/columns/checklist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/repositories/renderers/columns/checklist.js b/app/assets/javascripts/repositories/renderers/columns/checklist.js index 58b798d04..98e488faf 100644 --- a/app/assets/javascripts/repositories/renderers/columns/checklist.js +++ b/app/assets/javascripts/repositories/renderers/columns/checklist.js @@ -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); } }); }