From b2f82266e394780f1605e4389fcadb4b697b9e8f Mon Sep 17 00:00:00 2001 From: Roberto Wesley Overdijk Date: Tue, 16 Jul 2019 14:17:11 +0200 Subject: [PATCH] skip render if state is null --- addons/ondevice-backgrounds/src/BackgroundPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/ondevice-backgrounds/src/BackgroundPanel.js b/addons/ondevice-backgrounds/src/BackgroundPanel.js index 30800f7ca8e0..379f8947028a 100644 --- a/addons/ondevice-backgrounds/src/BackgroundPanel.js +++ b/addons/ondevice-backgrounds/src/BackgroundPanel.js @@ -56,7 +56,7 @@ export default class BackgroundPanel extends Component { render() { const { active, api } = this.props; - if (!active) { + if (!active || !this.state) { return null; }