fixed up modal not closing for triggers
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user