-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] expected a map, got: nil when using custom form_field #256
Comments
Can you please do the following and see if it works:
If this works, then Kaffy has a bug with explicit resources. If it doesn't work, at least we know this is not the issue and we can remove it from the list. |
If you meant the following, then yeah I've removed and it works. But as
|
Tried this as well
Unfortunately, the same issue persists. |
Worked fine commented the resources line as @davidahmed commented. Thanks! |
@davidahmed in create_resources() rename |
Versions Used
Kaffy: 0.9.4
Phoenix: 1.6.9
Elixir: 1.14.2
What's actually happening?
If I configure
resources
manually, I get error on edit, create, or update.Here's the configuration I am using:
If I don't use
resources
in config, then everything works. However, I need to have custom form fields for some resources.This is one of my configurations:
Here's the
Config.create_resources
What should happen instead?
The resource should be created with the given parameters (NOTE: the changeset only requires
friendly_name
but apparently even that is nil.)Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: