fix(ui): white screen on text editor

Only happens on Firefox
This commit is contained in:
Anthony Laibe 2018-11-20 09:44:09 +00:00
parent 66e431cf13
commit 10caddd872
2 changed files with 4 additions and 2 deletions

View File

@ -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));
}

View File

@ -64,7 +64,7 @@ class FileExplorerRowContainer extends React.Component {
render() {
return (
<div style={this.props.style.container}
<div style={this.props.style.container[0]}
onMouseEnter={() => this.activateNode()}
onMouseLeave={() => this.deactivateNode()}>
<span onClick={this.props.onClick}>