Commit 08b928aa authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃悰 Fix the select bug

parent daee0d7c
Pipeline #73992 passed with stage
in 13 seconds
......@@ -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,
};
}
......
Supports Markdown
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