Skip to content

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

Merged
hai-cea merged 1 commit intomui:masterfrom
janicduplessis:master
Jun 15, 2015
Merged

[toolbar-group] Fixed error when a child element is null#847
hai-cea merged 1 commit intomui:masterfrom
janicduplessis:master

Conversation

@janicduplessis
Copy link
Copy Markdown
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
Copy Markdown
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