From b4113134adf100f0ce030246b96e72ffffe181e6 Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Sun, 8 Dec 2024 22:07:42 +0000 Subject: [PATCH] Fix: test form: update the callback when the task changes --- .../route.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam/route.tsx index 15a911b705..711c26742d 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam/route.tsx @@ -204,7 +204,7 @@ function StandardTaskForm({ task, runs }: { task: TestTask["task"]; runs: Standa ); e.preventDefault(); }, - [currentPayloadJson, currentMetadataJson] + [currentPayloadJson, currentMetadataJson, task] ); const [form, { environmentId, payload }] = useForm({