From e20aec75b069deb2252708ebffc000988605e3c0 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 28 Nov 2022 12:06:00 +0100 Subject: [PATCH] fix #5764 (#5766) --- web/src/js/components/common/Splitter.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 })