Skip to content
Snippets Groups Projects
Verified Commit 96acaeaa authored by Yoran Hillion's avatar Yoran Hillion
Browse files

:alembic:️ Introduce an error that will be reported on Sentry

parent 44cf9b9a
Branches
Tags
No related merge requests found
Pipeline #151834 failed with stages
in 10 seconds
......@@ -70,14 +70,14 @@ function valueToArray(itemData: LabeledMetadata | undefined, field: UsfField | O
if (!itemData || itemData.value === null) {
return cleanedValue
}
const { component, repeatable, multiple } = field
const { component, repeatable } = field
if (typeof itemData.value === 'string') {
return [[ itemData.value ]]
}
else if (["UsfSelect", "UsfRadioGroup", "ReferentialSelect"].includes(component)) {
const userLocale = i18nLocale.value
const templateDefault = defaultLocale.value
if (repeatable && multiple) {
if (repeatable) {
return itemData.value.map(selectedOptions => (selectedOptions as string[]).map(optionId => {
const labels = itemData.label[optionId]
return labels[
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment