Unable to access to nested field when field is null
See original GitHub issueconst values = null;
const fields = [
'hotel.name',
'hotel.starRating',
];
const form = new Form({ fields, values });
console.log(form.$('hotel.name').value); // Error
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Spring Nested object is getting null while submitting form
Looking at your HTML logic. I suspect issue is in Project Loop. You are defining th:field="*{project}" but using as pro in option.
Read more >Sorting on an unmapped nested field throws an error
I'm trying to sort on unmapped nested fields. Due to our dynamic_template i run into the issue, that i do not have the...
Read more >Handling Nulls in nested objects (Java) - Lalit Vatsal - Medium
Suppose we have a simple but nested object structure like: ... The only problem is we cannot control and determine which stage failed...
Read more >How to handle deeply-nested nullable fields in JavaScript and ...
Option 1: Enter idx I have found idx to be a safe method of accessing these nested nullable values. A naive implementation of...
Read more >Minor bug in NestedField if nested serializer allows empty data
I ran into an issue using NestedFields when it wraps a serializer that allows no data body when POSTing. What I want to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Now should work as expected! Let me know, thank you.
I don’t get the same result (it’s correct for me):