diff --git a/web/src/js/components/common/Splitter.tsx b/web/src/js/components/common/Splitter.tsx index dc522fca0..b1aa1d897 100644 --- a/web/src/js/components/common/Splitter.tsx +++ b/web/src/js/components/common/Splitter.tsx @@ -87,8 +87,12 @@ export default class Splitter extends Component { const node = ReactDOM.findDOMNode(this) - node.previousElementSibling.style.flex = '' - node.nextElementSibling.style.flex = '' + if (node.previousElementSibling){ + node.previousElementSibling.style.flex = '' + } + if (node.nextElementSibling) { + node.nextElementSibling.style.flex = '' + } if (!willUnmount) { this.setState({ applied: false })