Skip to content
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

Error with ember model fragment while validating with ember-model-validator #324

Open
jayseo5953 opened this issue Sep 14, 2023 · 0 comments

Comments

@jayseo5953
Copy link

jayseo5953 commented Sep 14, 2023

Hello, I have a model with a fragment from ember-data-model-fragments
And I use ember-model-validator
Before saving I run validate to validate fields.

When I have an error in a field (ex, name) , it throws this uncaught error on the adapter instead of adding the field error (ex "Name is empty") to the model with the fragment even though the error that the validation caught was not the fragment property.

Uncaught Error: Attempted to handle event `becameError` on <fragments/my-fragment:null> while in state root.loaded.updated.uncommitted. 

Versions i am using

ember: 4,4,1,
"ember-data": "~4.4.0",
"ember-model-validator": "3.14.0",
"ember-data-model-fragments": "^6.0.3",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant