Merge pull request #3307 from tchak/fix-new-champs-editor

Fix champs editor on old procedures
This commit is contained in:
Paul Chavard 2019-01-20 14:06:43 +01:00 committed by GitHub
commit 6a9b024a6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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++}`
};