Expected behavior
On a smart action get the load hook to kick in on load. It’s not happening. Not setting value, nor printing log, nor stopping at break point.
Actual behavior
It’s not being fired so it is as it’s not being defined.
Failure Logs
no failure log when opening smart action on UI. It’s showing the action. It’s loading it but the fields of enum are still empty so no option showing on dropdown.
Context
This is the smart action with the load hook setup
{
name: 'lorem',
endpoint: '/forest/actions/add-lorem',
type: 'bulk',
fields: [
{
field: 'select items',
type: 'Enum',
enums: [],
},
],
hooks: {
load: async ({ fields, record }) => {
console.log('not being executed')
return fields
},
},
}
Setup
- Package Version: “forest-express-sequelize”: “^6.7.11”
- Express Version: “express”: “~4.16.3”
- Sequelize Version: “sequelize”: "~5.15.1
- Database Dialect: “postgres”
- Database Version: “pg”: “^8.5.1”