fix(userselection): dont unset selection on startup #515

This commit is contained in:
moklick
2020-09-18 12:56:19 +02:00
parent f02ce5848e
commit 5a504df0d6
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ export const getBoundsofRects = (rect1: Rect, rect2: Rect): Rect =>
export const getRectOfNodes = (nodes: Node[]): Rect => {
const box = nodes.reduce(
(currBox, { __rf: { position, width, height } }) =>
(currBox, { __rf: { position, width, height } = {} }) =>
getBoundsOfBoxes(currBox, rectToBox({ ...position, width, height })),
{ x: Infinity, y: Infinity, x2: -Infinity, y2: -Infinity }
);