Array of `Select` doesn't fill from state
I'm making a system that maps CSV columns to an existing table. For this i have a
TableMapping
model and resource with a single json
field (key-value pairs).
I have casted this field to object
in the model, my resource looks like this:
This all works fine, i get all the dropdowns, along with their options based on table column names.
But when i select a value, and save the mapping, and then refresh the browser page, all dropdowns goes back to the default state of "Select an option".
I have checked the DB, the values are saved correctly. If i dd($schema)
i can see the values are correctly hydrated into their appropriate dropdowns, it's just not filled in the view.
Anyone got any ideas?0 Replies