Expected behavior
I expect boolean inputs to only have “true” and “false” states
Actual behavior
Boolean inputs have three states: “true”, “false” and “undefined”
Context
One of my smart action fields is a boolean field. I want my user to only have two choices for its value: true and false. What am I doing wrong here?
Field definition:
From my forest/table.ts
collection file:
{
name: "myAction",
type: "global",
fields: [
{
field: 'isEnabled',
description: '',
type: 'Boolean',
isRequired: true,
defaultValue: false
},
]
}
From .forestadmin-schema.json
{
"field": "isEnabled",
"type": "Boolean",
"defaultValue": false,
"enums": null,
"isRequired": true,
"reference": null,
"description": "",
"position": 0,
"widget": null
}
Please provide any relevant information about your setup.
“forest-express-sequelize”: “8.0.6”
Thanks!