From 38032e1ef25005398b4ba870f93ababf2ae8beb4 Mon Sep 17 00:00:00 2001 From: emizzle Date: Tue, 28 Aug 2018 00:22:14 +1000 Subject: [PATCH] Fix bug with deleting all code --- embark-ui/src/containers/FiddleContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embark-ui/src/containers/FiddleContainer.js b/embark-ui/src/containers/FiddleContainer.js index 0354f9f68..8d29a80a0 100644 --- a/embark-ui/src/containers/FiddleContainer.js +++ b/embark-ui/src/containers/FiddleContainer.js @@ -29,7 +29,7 @@ class FiddleContainer extends Component { } componentDidUpdate(prevProps){ - if(prevProps.lastFiddle !== this.props.lastFiddle){ + if(this.props.lastFiddle && (prevProps.lastFiddle !== this.props.lastFiddle)){ this._onCodeChange(this.props.lastFiddle); } }