1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: new field default value unknown instead 'noval'

This commit is contained in:
2021-07-22 13:06:54 +02:00
parent d1d8592f79
commit 77c5d28032

View File

@ -450,7 +450,7 @@ export default {
}); });
this.defaultValue.onUpdate = this.localRow.onUpdate; this.defaultValue.onUpdate = this.localRow.onUpdate;
this.defaultValue.type = this.localRow.defaultType; this.defaultValue.type = this.localRow.defaultType || 'noval';
if (this.defaultValue.type === 'custom') { if (this.defaultValue.type === 'custom') {
this.defaultValue.custom = this.localRow.default this.defaultValue.custom = this.localRow.default
? this.localRow.default.includes('\'') ? this.localRow.default.includes('\'')
@ -458,7 +458,7 @@ export default {
: this.localRow.default : this.localRow.default
: ''; : '';
} }
if (this.defaultValue.type === 'expression') else if (this.defaultValue.type === 'expression')
this.defaultValue.expression = this.localRow.default; this.defaultValue.expression = this.localRow.default;
}, },
editON (event, content, field) { editON (event, content, field) {