diff --git a/src/app/App.tsx b/src/app/App.tsx index 998c2ec5..249b7fde 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -9368,19 +9368,23 @@ export function App({ store, initialStatusMessage }: AppProps) { return; } - const nextEffect = cloneControlEffect(link.action.effect); - mutate(nextEffect); - commitInteractionLinkChange( - link, - createControlInteractionLink({ - id: link.id, - sourceEntityId: link.sourceEntityId, - trigger: link.trigger, - effect: nextEffect - }), - successMessage, - label - ); + try { + const nextEffect = cloneControlEffect(link.action.effect); + mutate(nextEffect); + commitInteractionLinkChange( + link, + createControlInteractionLink({ + id: link.id, + sourceEntityId: link.sourceEntityId, + trigger: link.trigger, + effect: nextEffect + }), + successMessage, + label + ); + } catch (error) { + setStatusMessage(getErrorMessage(error)); + } }; const handleAddSequenceInteractionLink = () => {