Skip to content

Commit 22e396d

Browse files
authored
fix(Block): fix update anchor's port positions after update state (#137)
1 parent 48d5022 commit 22e396d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/canvas/blocks/Block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export class Block<T extends TBlock = TBlock, Props extends TBlockProps = TBlock
255255
this.getOutputPort().setPoint(outputPoint.x, outputPoint.y);
256256

257257
// Update anchor ports positions
258-
this.state.anchors.forEach((anchor) => {
258+
this.connectedState.$anchors.value.forEach((anchor) => {
259259
const port = this.getAnchorPort(anchor.id);
260260
if (port) {
261261
const anchorPoint = this.getConnectionAnchorPosition(anchor);

0 commit comments

Comments
 (0)