mirror of https://github.com/Fabio286/antares.git
fix: wrong date or time detection in field default
This commit is contained in:
parent
34ebc6b72d
commit
9d5ebefdce
|
@ -400,7 +400,7 @@ export default {
|
|||
this.defaultValue.type = 'custom';
|
||||
this.defaultValue.custom = this.localRow.default.replace(/(^')|('$)/g, '');
|
||||
}
|
||||
else if (!isNaN(this.localRow.default)) {
|
||||
else if (!isNaN(this.localRow.default.replace(/[:.-\s]/g, ''))) {
|
||||
this.defaultValue.type = 'custom';
|
||||
this.defaultValue.custom = this.localRow.default;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue