mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: unable to set string fields default values starting with 0
This commit is contained in:
@ -532,7 +532,10 @@ const editOFF = () => {
|
||||
break;
|
||||
case 'custom':
|
||||
localRow.value.autoIncrement = false;
|
||||
localRow.value.default = Number.isNaN(+defaultValue.value.custom) ? `'${defaultValue.value.custom}'` : defaultValue.value.custom;
|
||||
if (fieldType.value.group === 'string')
|
||||
localRow.value.default = `'${defaultValue.value.custom}'`;
|
||||
else
|
||||
localRow.value.default = defaultValue.value.custom;
|
||||
break;
|
||||
case 'expression':
|
||||
localRow.value.autoIncrement = false;
|
||||
|
Reference in New Issue
Block a user