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",
"armv7l",
"arm64"
]
],
"fpm": ["--deb-no-default-config-files flag"]
},
{
"target": "AppImage",

View File

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