From cb920c0713ad79dd7b9c97b699957e9d8b630e03 Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Sun, 14 Jul 2024 18:01:51 +0200 Subject: [PATCH] Formating --- frontend/src/lib/components/Forms/AutocompleteSelect.svelte | 2 +- .../compliance-assessments/[id=uuid]/TreeViewItemLead.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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' : '';