Can't set belongsTo, hasMany association to null

Expected behavior

When editing a record from ModelA, (ModelA belongsTo ModelB and ModelB hasMany ModelA). I can set modelA.modelBId to null. In other words, remove the association.

Actual behavior

It does not appear as an option when using a belongsToSelect widget:

Please provide any relevant information about your setup.

  • Package Version: ^8.0.5
  • Express Version: ^4.17.1
  • Sequelize Version: ^6.6.62
  • Database Dialect: postgres
  • Database Version: 11
  • Project Name: forest-api

Hi @cooki :wave: have you try to set the dropdown widget who allow null value ?


Let me know.

Hey, yup just did and it works great :slight_smile: thank you !

1 Like