1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-13 02:00:36 +01:00

fix: unable to set string fields default values starting with 0

This commit is contained in:
Fabio Di Stasio 2023-03-02 18:09:16 +01:00
parent 8730be02af
commit 3546c57e39
2 changed files with 6 additions and 2 deletions

View File

@ -68,7 +68,8 @@
"x64", "x64",
"armv7l", "armv7l",
"arm64" "arm64"
] ],
"fpm": ["--deb-no-default-config-files flag"]
}, },
{ {
"target": "AppImage", "target": "AppImage",

View File

@ -532,7 +532,10 @@ const editOFF = () => {
break; break;
case 'custom': case 'custom':
localRow.value.autoIncrement = false; 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; break;
case 'expression': case 'expression':
localRow.value.autoIncrement = false; localRow.value.autoIncrement = false;