Skip to content

Commit

Permalink
fix(edgeless): should generate connectors' path once when loading con…
Browse files Browse the repository at this point in the history
…nector middleware (toeverything#6084)
  • Loading branch information
doouding authored Jan 23, 2024
1 parent 25f3d68 commit 4e2c1ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/blocks/src/surface-block/middlewares/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export function connectorMiddleware(surface: SurfaceBlockModel) {
}),
];

surface
.getElementsByType('connector')
.forEach(connector =>
updateConnectorPath(connector as ConnectorElementModel)
);

return () => {
disposables.forEach(d => d.dispose());
};
Expand Down

0 comments on commit 4e2c1ee

Please sign in to comment.