fix: wrong date or time detection in field default

This commit is contained in:
Fabio Di Stasio 2021-02-15 09:58:43 +01:00
parent 34ebc6b72d
commit 9d5ebefdce
1 changed files with 1 additions and 1 deletions

View File

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