summaryrefslogtreecommitdiff
path: root/makima/frontend/src/hooks/useDirectives.ts
diff options
context:
space:
mode:
Diffstat (limited to 'makima/frontend/src/hooks/useDirectives.ts')
-rw-r--r--makima/frontend/src/hooks/useDirectives.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/makima/frontend/src/hooks/useDirectives.ts b/makima/frontend/src/hooks/useDirectives.ts
index 8104de0..e7b2b80 100644
--- a/makima/frontend/src/hooks/useDirectives.ts
+++ b/makima/frontend/src/hooks/useDirectives.ts
@@ -18,7 +18,6 @@ import {
completeDirectiveStep,
failDirectiveStep,
skipDirectiveStep,
- updateDirectiveGoal,
cleanupDirective,
pickUpOrders as pickUpOrdersApi,
createDirectivePR,
@@ -293,12 +292,6 @@ export function useDirective(id: string | undefined) {
await refresh();
}, [id, refresh]);
- const updateGoal = useCallback(async (goal: string) => {
- if (!id) return;
- await updateDirectiveGoal(id, goal);
- await refresh();
- }, [id, refresh]);
-
const cleanup = useCallback(async () => {
if (!id) return;
await cleanupDirective(id);
@@ -323,7 +316,7 @@ export function useDirective(id: string | undefined) {
update, addStep, removeStep,
start, pause, advance,
completeStep, failStep, skipStep,
- updateGoal, cleanup,
+ cleanup,
pickUpOrders: pickUpOrdersFn,
createPR,
};