diff --git a/webapp/src/components/AutomationEditor/index.tsx b/webapp/src/components/AutomationEditor/index.tsx index 849d38a..8ad09c6 100644 --- a/webapp/src/components/AutomationEditor/index.tsx +++ b/webapp/src/components/AutomationEditor/index.tsx @@ -53,7 +53,10 @@ export const AutomationEditor: FC = ({ {!!modalState && setModalState(null)} - onSave={modalState.onSave as any} + onSave={(n) => { + modalState.onSave(n as any); + setModalState(null); + }} allowedTypes={['trigger']} />}