From 9d7634c37bb4aac35365eb849d1d1efdf77e08a9 Mon Sep 17 00:00:00 2001 From: Ari Date: Wed, 13 Apr 2022 14:18:44 -0400 Subject: [PATCH] fixed up modal not closing for triggers --- webapp/src/components/AutomationEditor/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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']} />}