mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-08 15:58:45 +01:00
fix: unable to set string fields default values starting with 0
This commit is contained in:
parent
8730be02af
commit
3546c57e39
@ -68,7 +68,8 @@
|
||||
"x64",
|
||||
"armv7l",
|
||||
"arm64"
|
||||
]
|
||||
],
|
||||
"fpm": ["--deb-no-default-config-files flag"]
|
||||
},
|
||||
{
|
||||
"target": "AppImage",
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user