Skip to content

Commit

Permalink
skip render if state is null
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk authored Jul 16, 2019
1 parent ae61a9e commit b2f8226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/ondevice-backgrounds/src/BackgroundPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class BackgroundPanel extends Component {
render() {
const { active, api } = this.props;

if (!active) {
if (!active || !this.state) {
return null;
}

Expand Down

0 comments on commit b2f8226

Please sign in to comment.