Skip to content

Commit a50d243

Browse files
committed
Fix: Target communication of links
1 parent c555506 commit a50d243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stores/link-renderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ export const useLinkRendererStore = create<LinkRendererState>((set, get) => ({
7676

7777
if (classCommunication instanceof ClassCommunication) {
7878
sourceClass = findFirstOpen(sourceApp, classCommunication.sourceClass);
79-
targetClass = findFirstOpen(sourceApp, classCommunication.targetClass);
79+
targetClass = findFirstOpen(targetApp, classCommunication.targetClass);
8080
} else {
8181
sourceClass = findFirstOpen(sourceApp, classCommunication.sourceEntity);
82-
targetClass = findFirstOpen(sourceApp, classCommunication.targetEntity);
82+
targetClass = findFirstOpen(targetApp, classCommunication.targetEntity);
8383
}
8484

8585
const sourceMesh = sourceApp.getBoxMeshByModelId(sourceClass.id);

0 commit comments

Comments
 (0)