Fix champs editor on old procedures
This commit is contained in:
parent
6d8eaaa7c9
commit
174b01ecd4
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ export default {
|
|||
return this.typeChamp === 'header_section';
|
||||
},
|
||||
options() {
|
||||
const options = this.item.options;
|
||||
const options = this.item.options || {};
|
||||
for (let key of Object.keys(options)) {
|
||||
options[key] = castBoolean(options[key]);
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ export default {
|
|||
libelle: this.item.libelle,
|
||||
mandatory: this.item.mandatory,
|
||||
description: this.item.description,
|
||||
dropDownList: this.item.drop_down_list.value,
|
||||
dropDownList: this.item.drop_down_list && this.item.drop_down_list.value,
|
||||
deleted: false,
|
||||
clientId: `id-${clientIds++}`
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue