question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't read number field where value is greater than 0

See original GitHub issue

For some reasons, when I do a query request to get my objects, some properties of the json objects are missed. Below the query :

        data => {
            if(data.value) {
                Object.keys(data.value).forEach(key => {
                    this.results.push(data.value[key]); // Here I dont get exactly the JSON, some properties disapears.....
                }
            }
        }, "/ads/", 
        { orderBy: { type: firebase.QueryOrderByType.KEY }})
        .then(result => { return result; })
    );

Properties of type number are not loaded (totalProduct and state) when value is greater than 0. capture d ecran 2016-10-19 a 19 02 40

Regards

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
jloopercommented, Dec 6, 2016

holy cow. That seems to have done it! Wow, what a strange behavior!! But thank you @eddy and @fsandreau I hope this might help you!!

1reaction
jloopercommented, Dec 6, 2016

I’ve created a sample using both query and adding an event listener. Consistently, when I run the app using tns run ios I get my data back, but when I use tns livesync ios --watch nothing is returned. I would just say, ok, don’t use livesync, but I am not convinced that this same problem doesn’t occur when I build to device (tns deploy ios --device device-id), close the app, and then reopen it. Here’s my repo: https://github.com/jlooper/test-tapper

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input number field more than 0? - Stack Overflow
A simple solution could be, add an input event to your . I'm given an id to that input. If the input less...
Read more >
Why the number input is the worst input - Stack Overflow Blog
Values with a leading zero are not numbers, they are strings/text. Just because something is made up of digits does not mean it...
Read more >
<input type="number"> - HTML: HyperText Markup Language
If the value of the max attribute isn't a number, then the element has no maximum value. This value must be greater than...
Read more >
Format a number or currency field - Microsoft Support
Custom formats for numbers and currency fields in Access can be useful when you want the ... Zero values as the number 0,...
Read more >
Numbers - The Modern JavaScript Tutorial
Use parseInt/parseFloat for the “soft” conversion, which reads a number from a string and then returns the value they could read before the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found