darabos commited on
Commit
bbd3b58
·
1 Parent(s): f563e64

Avoid permanently selecting groups.

Browse files
lynxkite-app/web/src/workspace/Workspace.tsx CHANGED
@@ -371,7 +371,6 @@ function LynxKiteFlow() {
371
  width: 0,
372
  height: 0,
373
  data: { title: "Group", params: {} },
374
- selected: true,
375
  };
376
  let top = Number.POSITIVE_INFINITY;
377
  let left = Number.POSITIVE_INFINITY;
@@ -392,7 +391,7 @@ function LynxKiteFlow() {
392
  groupNode.width = right - left;
393
  groupNode.height = bottom - top;
394
  setNodes([
395
- groupNode as WorkspaceNode,
396
  ...nodes.map((n) =>
397
  n.selected
398
  ? {
 
371
  width: 0,
372
  height: 0,
373
  data: { title: "Group", params: {} },
 
374
  };
375
  let top = Number.POSITIVE_INFINITY;
376
  let left = Number.POSITIVE_INFINITY;
 
391
  groupNode.width = right - left;
392
  groupNode.height = bottom - top;
393
  setNodes([
394
+ { ...(groupNode as WorkspaceNode), selected: true },
395
  ...nodes.map((n) =>
396
  n.selected
397
  ? {