From 29d4003bd213f62b97d5a2f49fbd01eaf79f1167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Wed, 4 Sep 2024 09:37:35 +0200 Subject: [PATCH] fix splitpane errors --- shared/naturalcrit/splitPane/splitPane.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shared/naturalcrit/splitPane/splitPane.jsx b/shared/naturalcrit/splitPane/splitPane.jsx index 373d546da..ed31e03fe 100644 --- a/shared/naturalcrit/splitPane/splitPane.jsx +++ b/shared/naturalcrit/splitPane/splitPane.jsx @@ -142,9 +142,11 @@ const SplitPane = createClass({ width={this.state.currentDividerPos} > {React.cloneElement(this.props.children[0], { - moveBrew : this.state.moveBrew, - moveSource : this.state.moveSource, - setMoveArrows : this.setMoveArrows + ...(this.state.showMoveArrows && { + moveBrew: this.state.moveBrew, + moveSource: this.state.moveSource, + setMoveArrows: this.setMoveArrows, + }), })} {this.renderDivider()}