Skip to content

Commit b411313

Browse files
committed
Fix: test form: update the callback when the task changes
1 parent 2a07ea4 commit b411313

File tree

1 file changed

+1
-1
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam

1 file changed

+1
-1
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function StandardTaskForm({ task, runs }: { task: TestTask["task"]; runs: Standa
204204
);
205205
e.preventDefault();
206206
},
207-
[currentPayloadJson, currentMetadataJson]
207+
[currentPayloadJson, currentMetadataJson, task]
208208
);
209209

210210
const [form, { environmentId, payload }] = useForm({

0 commit comments

Comments
 (0)