From e059fc2e0e444ae31c032209c99921481cce3088 Mon Sep 17 00:00:00 2001 From: Guillaume Fontorbe Date: Mon, 29 Apr 2024 13:36:56 +0200 Subject: [PATCH] Fix selector Signed-off-by: Guillaume Fontorbe --- .../src/features/edge-junction/junction-postprocessor.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/sprotty/src/features/edge-junction/junction-postprocessor.ts b/packages/sprotty/src/features/edge-junction/junction-postprocessor.ts index eb2e8e6..620f8b5 100644 --- a/packages/sprotty/src/features/edge-junction/junction-postprocessor.ts +++ b/packages/sprotty/src/features/edge-junction/junction-postprocessor.ts @@ -35,13 +35,11 @@ export class JunctionPostProcessor implements IVNodePostprocessor { } postUpdate(cause?: Action | undefined): void { let targetDiv: string = this.viewerOptions.baseDiv; - let junctionSelector = `#${targetDiv} > svg > g > g.sprotty-junction`; - if (cause?.kind === RequestBoundsAction.KIND) { targetDiv = this.viewerOptions.hiddenDiv; - junctionSelector = `#${targetDiv} > svg > g > g > g.sprotty-junction`; } + const junctionSelector = `#${targetDiv} > svg > g > g > g.sprotty-junction`; const svg = document.querySelector(`#${targetDiv} > svg > g`); if (svg) { const junctionGroups = Array.from(document.querySelectorAll(junctionSelector));