diff --git a/ui/src/shared/components/LayoutRenderer.js b/ui/src/shared/components/LayoutRenderer.js index 524fe5a548..d52a8434bc 100644 --- a/ui/src/shared/components/LayoutRenderer.js +++ b/ui/src/shared/components/LayoutRenderer.js @@ -126,6 +126,11 @@ export const LayoutRenderer = React.createClass({ handleLayoutChange(layout) { this.triggerWindowResize() + + if (!this.props.onPositionChange) { + return + } + const newCells = this.props.cells.map((cell) => { const l = layout.find((ly) => ly.i === cell.i) const newLayout = {x: l.x, y: l.y, h: l.h, w: l.w}