mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 12:10:39 +01:00
fix: app blocked by BIT fields with no default, closes #256
This commit is contained in:
parent
6d6151814e
commit
e62f280528
@ -271,7 +271,7 @@ export default {
|
||||
else if ([...TIME, ...DATE].includes(field.type))
|
||||
fieldDefault = field.default;
|
||||
else if (BIT.includes(field.type))
|
||||
fieldDefault = field.default.replaceAll('\'', '').replaceAll('b', '');
|
||||
fieldDefault = field.default?.replaceAll('\'', '').replaceAll('b', '');
|
||||
else if (DATETIME.includes(field.type)) {
|
||||
if (field.default && ['current_timestamp', 'now()'].some(term => field.default.toLowerCase().includes(term))) {
|
||||
let datePrecision = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user