diff --git a/frontend/src/lib/components/Forms/AutocompleteSelect.svelte b/frontend/src/lib/components/Forms/AutocompleteSelect.svelte index aeb85efb7..86b9b1324 100644 --- a/frontend/src/lib/components/Forms/AutocompleteSelect.svelte +++ b/frontend/src/lib/components/Forms/AutocompleteSelect.svelte @@ -59,7 +59,7 @@ const default_value = nullable ? null : selectedValues[0]; $: { - $value = multiple ? selectedValues : selectedValues[0] ?? default_value; + $value = multiple ? selectedValues : (selectedValues[0] ?? default_value); handleSelectChange(); } diff --git a/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/TreeViewItemLead.svelte b/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/TreeViewItemLead.svelte index 4dd466206..ada96e940 100644 --- a/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/TreeViewItemLead.svelte +++ b/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/TreeViewItemLead.svelte @@ -13,8 +13,8 @@ export let isScored: boolean; export let max_score: number; - const leadResult = Object.hasOwn(m, resultI18n) ? m[resultI18n]() : m.notAssessed() ?? ''; - const lead = Object.hasOwn(m, statusI18n) ? m[statusI18n]() : m.notAssessed() ?? ''; + const leadResult = Object.hasOwn(m, resultI18n) ? m[resultI18n]() : (m.notAssessed() ?? ''); + const lead = Object.hasOwn(m, statusI18n) ? m[statusI18n]() : (m.notAssessed() ?? ''); $: classesText = resultColor == '#000000' ? 'text-white' : '';