From 10caddd8727ba3c7b7d792b6280505b6cc1a1fe0 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 20 Nov 2018 09:44:09 +0000 Subject: [PATCH] fix(ui): white screen on text editor Only happens on Firefox --- embark-ui/src/containers/EditorContainer.js | 4 +++- embark-ui/src/containers/FileExplorerRowContainer.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/embark-ui/src/containers/EditorContainer.js b/embark-ui/src/containers/EditorContainer.js index 5418fd00c..12a867427 100644 --- a/embark-ui/src/containers/EditorContainer.js +++ b/embark-ui/src/containers/EditorContainer.js @@ -47,7 +47,9 @@ class EditorContainer extends React.Component { componentDidMount() { this.props.fetchEditorTabs(); this.props.fetchContracts(); - this.props.fetchTransaction(this.props.debuggerTransactionHash); + if (this.props.debuggerTransactionHash) { + this.props.fetchTransaction(this.props.debuggerTransactionHash); + } window.addEventListener("resize", this.updateDimensions.bind(this)); } diff --git a/embark-ui/src/containers/FileExplorerRowContainer.js b/embark-ui/src/containers/FileExplorerRowContainer.js index 6946c3614..1bf5f2135 100644 --- a/embark-ui/src/containers/FileExplorerRowContainer.js +++ b/embark-ui/src/containers/FileExplorerRowContainer.js @@ -64,7 +64,7 @@ class FileExplorerRowContainer extends React.Component { render() { return ( -
this.activateNode()} onMouseLeave={() => this.deactivateNode()}>