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

[BUGFIX beta] Async functions being treated as falsey in template conditionals #18651

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

mjanjic01
Copy link
Contributor

Fixes #18641

The typeOf TYPE_MAP was missing an [object AsyncFunction] entry, which results in the typeOf helper returning object as the type for a given async function.

This will propagate the error to the isArray method conditional and the toBool util ultimately used by the inlineIf helper resulting in the bug.

@rwjblue rwjblue changed the title [BUGFIX] Async functions being treated as falsey in template conditionals [BUGFIX beta] Async functions being treated as falsey in template conditionals Jan 16, 2020
@rwjblue rwjblue merged commit c9ad7fb into emberjs:beta Jan 16, 2020
@rwjblue
Copy link
Member

rwjblue commented Jan 16, 2020

Thank you!!

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

Successfully merging this pull request may close these issues.

2 participants