Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Elements groups are not rendered if theres no elements #2
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Sep 1, 2016
1 parent 8de708c commit 57e6a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Window extends Component {
const {elements} = elem;
return (
<div className="elements-line" key={"line" + id}>
{elements && this.renderElements(elements)}
{elements && elements.length > 0 && this.renderElements(elements)}
</div>
)
})
Expand Down

0 comments on commit 57e6a63

Please sign in to comment.