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

[toolbar-group] Fixed error when a child element is null #847

Merged
merged 1 commit into from
Jun 15, 2015

Conversation

janicduplessis
Copy link
Contributor

Fixed an error when you try to show/hide and element inside a ToolbarGroup based on some conditions.

var ele = this.props.something ? <Element /> : null;
<ToolbarGroup>{ele}</ToolbarGroup>

I just added a null check in the map function
...and sublime deleted some trailing whitespace!

hai-cea added a commit that referenced this pull request Jun 15, 2015
[toolbar-group] Fixed error when a child element is null
@hai-cea hai-cea merged commit cb70f0d into mui:master Jun 15, 2015
@hai-cea
Copy link
Member

hai-cea commented Jun 15, 2015

Thanks @janicduplessis !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Toolbar The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants