Fix selected value

This commit is contained in:
Adria Navarro 2023-09-22 10:15:43 +02:00
parent 06d881aa7f
commit 4ca9029dc9
1 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,9 @@
this={component}
{options}
{autocomplete}
value={selectedValue}
value={selectedValue?.map(value =>
typeof value === "object" ? value._id : value
)}
on:change={multiselect ? multiHandler : singleHandler}
id={fieldState.fieldId}
disabled={fieldState.disabled}