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

Bug when template checks ! but value is set #25

Open
cawoodm opened this issue Oct 12, 2024 · 0 comments
Open

Bug when template checks ! but value is set #25

cawoodm opened this issue Oct 12, 2024 · 0 comments

Comments

@cawoodm
Copy link

cawoodm commented Oct 12, 2024

Don't know how to reproduce this outside of my codebase but the main render() function is returning undefined when the template handles a falsy value but no falsy value is passed.

I would suggest adding:

return '';

at the end of the render() function to avoid the case where meta === '!' but val is set.

image
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