Skip to content

Commit

Permalink
Rename extracted type variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Jan 8, 2025
1 parent 46815c8 commit a762410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/PositionGuesser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export class PositionGuesser {
const maxY = this.diagram.nodes.map((node) => node.position!.y).reduce((max, y) => Math.max(max, y), 0)

const isStarterNode = node.inputs.length === 0;
const type = (node as Node).name ?? (node as NodeDescription).name;
const isInputNode = type === 'Input';
const name = (node as Node).name ?? (node as NodeDescription).name;
const isInputNode = name === 'Input';

if(isStarterNode || isInputNode) {
return { x: startX, y: maxY === 0 ? startY : maxY + spaceY }
Expand Down

0 comments on commit a762410

Please sign in to comment.