We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to set field value programatically, but sometimes the value is null or undefined.
// example const name = field('name', ''); name.set(null);
If I call set method with null parameter it causes this error:
TypeError: Cannot convert undefined or null to object
It is caused by const keys = Object.keys(field); in function isField .
const keys = Object.keys(field);
Is it feature or bug? I can work around it with this:
const fieldObj = get(name); fieldObject.value = null; name.set(fieldObj);
But it seems unnecessarily complicated.
The text was updated successfully, but these errors were encountered:
chainlist
No branches or pull requests
I need to set field value programatically, but sometimes the value is null or undefined.
If I call set method with null parameter it causes this error:
TypeError: Cannot convert undefined or null to object
It is caused by
const keys = Object.keys(field);
in function isField .Is it feature or bug?
I can work around it with this:
But it seems unnecessarily complicated.
The text was updated successfully, but these errors were encountered: