fixed up deletes

This commit is contained in:
ari committed 2022-07-29 15:38:37 -04:00
1 parent e4af85cdfa
commit 957b6a66fe
9 files changed
+33 -12

No files matched your search

@@ -37,8 +37,8 @@ const story = makeStory({
args.onSelectedAutomationId(aid);
setSelAutoId(aid);
}}
onAutomationDelete={(aid) => {
args.onAutomationDelete(aid);
onAutomationDelete={(aid, eid) => {
args.onAutomationDelete(aid, eid);
setAutomations(automations.filter(({ id }) => id !== aid));
}}
onAutomationUpdate={(a, aid, eid) => {
@@ -28,7 +28,7 @@ export type AutomationManagerSidebarProps = {
aid: string,
eid: string
) => void;
onAutomationDelete: (aid: string) => void;
onAutomationDelete: (aid: string, eid: string) => void;
onAutomationAdd: () => void;
onSelectedAutomationId: (aid: string) => void;
};