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

Returning an array with an empty string in JSX results in js error #117

Closed
bryceosterhaus opened this issue May 26, 2016 · 2 comments
Closed
Labels

Comments

@bryceosterhaus
Copy link
Member

If an array every contains an empty string, results in js error.

Uncaught TypeError: Cannot read property 'key' of undefined

render() {
    return (
        <div>
            {['foo', '', ' bar']}
        </div>
    );
}
@mairatma
Copy link
Contributor

Hmm interesting, I'll take a look and see if it's a problem on our side or on the compiler's.

@mairatma
Copy link
Contributor

Fixed here :)

@mairatma mairatma added the bug label May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants