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

null parameter causes promise to never resolve #45

Open
jchabot86 opened this issue Apr 18, 2016 · 0 comments
Open

null parameter causes promise to never resolve #45

jchabot86 opened this issue Apr 18, 2016 · 0 comments

Comments

@jchabot86
Copy link

I have an params object with multiple properties on it. Some of the properties may be null. When this happens, the query that I run (which doesn't even reference the null parameter properties) just seems to hang and the promise never resolves. To get around this I need to build a new object which does not even contain those null properties. Is there a better way to handle this?

PS. The reason for the object containing the null properties is that I do some if statements to decide which query to execute by looking to see of those properties are null or not. If I could just continue to pass this object along and use it as the seriate params, that would be magnificent.

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