From 5d4f78dac5173217ce91ef3fb8a557e0e596cb07 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 15 Apr 2021 18:59:33 +0200 Subject: [PATCH] Fix selected check boxes --- .../elsa-check-list-property/elsa-check-list-property.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/designer/elsa-workflows-studio/src/components/editors/properties/elsa-check-list-property/elsa-check-list-property.tsx b/src/designer/elsa-workflows-studio/src/components/editors/properties/elsa-check-list-property/elsa-check-list-property.tsx index a9f00dee8..b726f882d 100644 --- a/src/designer/elsa-workflows-studio/src/components/editors/properties/elsa-check-list-property/elsa-check-list-property.tsx +++ b/src/designer/elsa-workflows-studio/src/components/editors/properties/elsa-check-list-property/elsa-check-list-property.tsx @@ -53,10 +53,10 @@ export class ElsaCheckListProperty {
{options.map((option, index) => { const inputId = `${fieldId}_${index}`; - const isSelected = values.findIndex(x => x == option) >= 0; const optionIsString = typeof(option) == 'string'; const value = optionIsString ? option : option.value; const text = optionIsString ? option : option.text; + const isSelected = values.findIndex(x => x == value) >= 0; return (