fixed up deletes
This commit is contained in:
1 parent
e4af85cdfa
commit
957b6a66fe
9 files changed
+33
-12
No files matched your search
@@ -11,7 +11,7 @@ import {
|
||||
import Alert from "@mui/material/Alert";
|
||||
|
||||
export type AutomationManagerLoadedProps = UseAutomationManagerStateArgs & {
|
||||
onAutomationDelete: (aid: string) => void;
|
||||
onAutomationDelete: (aid: string, eid: string) => void;
|
||||
};
|
||||
export const AutomationManagerLoaded: FC<
|
||||
PropsWithChildren<AutomationManagerLoadedProps>
|
||||
@@ -27,7 +27,10 @@ export const AutomationManagerLoaded: FC<
|
||||
selectedAutomationId={state.currentAutomationId}
|
||||
onSelectedAutomationId={state.setSelectedAutomationId}
|
||||
onAutomationAdd={() => state.addNew()}
|
||||
onAutomationDelete={onAutomationDelete}
|
||||
onAutomationDelete={(aid, eid) => {
|
||||
onAutomationDelete(aid, eid);
|
||||
state.setSelectedAutomationId(null);
|
||||
}}
|
||||
onAutomationUpdate={state.sideBarUpdateAutomation}
|
||||
/>
|
||||
<div className={["automation-manager--editor"].join(" ")}>
|
||||
|
||||
Reference in new issue
Block a user