null converted to "value"
See original GitHub issueform.$('people').set([
{ name: null },
{ name: null },
{ name: null },
])
Results in values being converted from null
to "value"
Shouldn’t it (if anything) convert to an empty string?
And there is another bug, only the first object is being copied!
form.values()
{
people: [{ name: "value" }]
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
A function to convert null to string - Stack Overflow
I want to create a function to convert any null value e.g. from a database to an empty string. I know there are...
Read more >How null is converted to Number in JavaScript? - Tutorialspoint
The Number() method in JavaScript is used to convert a value into a number. If the value is not convertible, then it will...
Read more >Convert to/from NULL value in Database - OutSystems
When retrieving data from the database, the null value is converted to the attribute's default value. If no default value is defined for...
Read more >ValueConverter.ConvertsNulls Property - Microsoft Learn
If true, then the nulls will be passed to the converter for conversion. Otherwise null values always remain null.
Read more >Solved: We cannot convert the value null to type Logical.
Solved: Hi there, I am trying to create a conditional column based on another column. When I created a conditional column, I got...
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
Yes, the update() method needs a change, I will make it.
‘set()’ should fill only the existent fields.
The null value conversion has been fixed, however there are still 2 issues:
Only sets the first field.
And the same but with update() does not do anything at all!
However calling it on form works fine:
form.update({ jobs: res })
I need it to also work on a selected child, please allow for something like:
form.$('people').update([...])