diff --git a/src/app/App.tsx b/src/app/App.tsx index 3e386d8b..1f772277 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1639,8 +1639,17 @@ export function App({ store, initialStatusMessage }: AppProps) { const handleDeleteInteractionLink = (linkId: string) => { try { + const link = editorState.document.interactionLinks[linkId]; store.executeCommand(createDeleteInteractionLinkCommand(linkId)); setStatusMessage("Deleted interaction link."); + // Re-sync trigger volume flags after deletion + if (link !== undefined) { + const remainingLinks = getInteractionLinksForSource( + editorState.document.interactionLinks, + link.sourceEntityId + ).filter((l) => l.id !== linkId); + syncTriggerVolumeFlags(link.sourceEntityId, remainingLinks); + } } catch (error) { setStatusMessage(getErrorMessage(error)); }