Skip to content

Commit

Permalink
Integrate changes from #3520
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed May 2, 2018
1 parent 4a86624 commit 6df6a3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/html/src/client/preview/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const rootElement = document.getElementById('root');
export default function renderMain({ story, selectedKind, selectedStory, showMain, showError }) {
const component = story();

showMain();
if (typeof component === 'string') {
rootElement.innerHTML = component;
} else if (component instanceof Node) {
Expand All @@ -19,7 +20,5 @@ export default function renderMain({ story, selectedKind, selectedStory, showMai
Use "() => <your snippet or node>" or when defining the story.
`,
});
return;
}
showMain();
}

0 comments on commit 6df6a3c

Please sign in to comment.