From c923c63099c45e07eacf9a6456ade21229e33913 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Wed, 1 Apr 2026 17:06:07 -0400 Subject: [PATCH] chore: update robot-plugins submodule --- robot-plugins | 2 +- src/components/experiments/ExperimentForm.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/robot-plugins b/robot-plugins index b9be426..442be9f 160000 --- a/robot-plugins +++ b/robot-plugins @@ -1 +1 @@ -Subproject commit b9be426805277b8fdf2766dd4692247421b5d406 +Subproject commit 442be9f6c6d5e774bb8230614c0924d996cdc4f1 diff --git a/src/components/experiments/ExperimentForm.tsx b/src/components/experiments/ExperimentForm.tsx index 838125b..17eea0f 100755 --- a/src/components/experiments/ExperimentForm.tsx +++ b/src/components/experiments/ExperimentForm.tsx @@ -34,8 +34,8 @@ const experimentSchema = z.object({ .max(100, "Name too long"), description: z .string() - .min(10, "Description must be at least 10 characters") - .max(1000, "Description too long"), + .max(1000, "Description too long") + .optional(), studyId: z.string().uuid("Please select a study"), estimatedDuration: z .number() @@ -123,7 +123,7 @@ export function ExperimentForm({ mode, experimentId }: ExperimentFormProps) { if (mode === "edit" && experiment) { form.reset({ name: experiment.name, - description: experiment.description ?? "", + description: experiment.description ?? undefined, studyId: experiment.studyId, estimatedDuration: experiment.estimatedDuration ?? undefined, status: experiment.status,