Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vue-unistra
formbuilder
Commits
08b928aa
Commit
08b928aa
authored
Feb 22, 2022
by
MARCO Jonathan
Browse files
🐛
Fix the select bug
parent
daee0d7c
Pipeline
#73992
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mixins/UsfFieldWithOptions.js
View file @
08b928aa
...
...
@@ -64,13 +64,13 @@ export default {
payload
=
undefined
;
}
else
if
(
this
.
field
.
multiple
)
{
payload
=
{
value
:
value
.
map
((
optionId
)
=>
this
.
$store
.
getters
[
'
form/getOptionByIdOrValue
'
](
optionId
).
value
),
label
:
value
.
map
((
optionId
)
=>
this
.
$store
.
getters
[
'
form/getOptionByIdOrValue
'
](
optionId
).
label
),
value
:
value
.
map
((
optionId
)
=>
this
.
$store
.
getters
[
'
form/getOptionByIdOrValue
'
](
optionId
)
?
.
value
),
label
:
value
.
map
((
optionId
)
=>
this
.
$store
.
getters
[
'
form/getOptionByIdOrValue
'
](
optionId
)
?
.
label
),
};
}
else
{
payload
=
{
value
:
this
.
$store
.
getters
[
'
form/getOptionByIdOrValue
'
](
value
).
value
,
label
:
this
.
$store
.
getters
[
'
form/getOptionByIdOrValue
'
](
value
).
label
,
value
:
this
.
$store
.
getters
[
'
form/getOptionByIdOrValue
'
](
value
)
?
.
value
,
label
:
this
.
$store
.
getters
[
'
form/getOptionByIdOrValue
'
](
value
)
?
.
label
,
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment