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

fix: no quotes around strings in field default custom value

This commit is contained in:
2021-05-05 17:13:12 +02:00
parent bebba64d06
commit 29e2d92b5b
4 changed files with 7 additions and 7 deletions

View File

@ -453,7 +453,7 @@ export default {
this.defaultValue.type = 'null';
else if (this.localRow.default.match(/^'.*'$/g)) {
this.defaultValue.type = 'custom';
this.defaultValue.custom = this.localRow.default.replace(/(^')|('$)/g, '');
this.defaultValue.custom = this.localRow.default.replaceAll(/(^')|('$)/g, '');
}
else if (!isNaN(this.localRow.default.replace(/[:.-\s]/g, ''))) {
this.defaultValue.type = 'custom';
@ -537,7 +537,7 @@ export default {
break;
case 'custom':
this.localRow.autoIncrement = false;
this.localRow.default = `'${this.defaultValue.custom}'`;
this.localRow.default = this.defaultValue.custom;
break;
case 'expression':
this.localRow.autoIncrement = false;