Skip to content

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