From 724dcd9bd8e77d48581046a552d9c1aa162e6819 Mon Sep 17 00:00:00 2001 From: Hypnosphi Date: Sun, 4 Mar 2018 15:01:26 +0300 Subject: [PATCH] Unset background when switching to a non-background story --- addons/background/src/BackgroundPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/background/src/BackgroundPanel.js b/addons/background/src/BackgroundPanel.js index de06c23e0f69..bf1172ba9230 100644 --- a/addons/background/src/BackgroundPanel.js +++ b/addons/background/src/BackgroundPanel.js @@ -89,6 +89,7 @@ export default class BackgroundPanel extends Component { this.channel.on('background-unset', () => { this.setState({ backgrounds: [] }); api.setQueryParams({ background: null }); + this.updateIframe('none'); }); }