fixed up modal not closing for triggers

This commit is contained in:
ari committed 2022-04-13 14:29:15 -04:00
1 parent 6995136704
commit 9d7634c37b
1 file changed
+4 -1
@@ -53,7 +53,10 @@ export const AutomationEditor: FC<Props> = ({
{!!modalState && <NodeEditor
node={modalState.trigger}
onClose={() => setModalState(null)}
onSave={modalState.onSave as any}
onSave={(n) => {
modalState.onSave(n as any);
setModalState(null);
}}
allowedTypes={['trigger']}
/>}
</Modal>