fix: new field default value unknown instead 'noval'

This commit is contained in:
Fabio Di Stasio 2021-07-22 13:06:54 +02:00
parent d1d8592f79
commit 77c5d28032
1 changed files with 2 additions and 2 deletions

View File

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