summaryrefslogtreecommitdiff
path: root/makima/frontend/src/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'makima/frontend/src/hooks')
-rw-r--r--makima/frontend/src/hooks/useDirectives.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/makima/frontend/src/hooks/useDirectives.ts b/makima/frontend/src/hooks/useDirectives.ts
index 18544da..898f671 100644
--- a/makima/frontend/src/hooks/useDirectives.ts
+++ b/makima/frontend/src/hooks/useDirectives.ts
@@ -19,7 +19,7 @@ import {
failDirectiveStep,
skipDirectiveStep,
updateDirectiveGoal,
- cleanupDirectiveTasks,
+ cleanupDirective,
pickUpOrders as pickUpOrdersApi,
createDirectivePR,
} from "../lib/api";
@@ -173,9 +173,9 @@ export function useDirective(id: string | undefined) {
await refresh();
}, [id, refresh]);
- const cleanupTasks = useCallback(async () => {
+ const cleanup = useCallback(async () => {
if (!id) return;
- await cleanupDirectiveTasks(id);
+ await cleanupDirective(id);
await refresh();
}, [id, refresh]);
@@ -197,7 +197,7 @@ export function useDirective(id: string | undefined) {
update, addStep, removeStep,
start, pause, advance,
completeStep, failStep, skipStep,
- updateGoal, cleanupTasks,
+ updateGoal, cleanup,
pickUpOrders: pickUpOrdersFn,
createPR,
};