mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-05-08 13:58:55 -04:00
chore: update robot-plugins submodule
This commit is contained in:
+1
-1
Submodule robot-plugins updated: b9be426805...442be9f6c6
@@ -34,8 +34,8 @@ const experimentSchema = z.object({
|
|||||||
.max(100, "Name too long"),
|
.max(100, "Name too long"),
|
||||||
description: z
|
description: z
|
||||||
.string()
|
.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"),
|
studyId: z.string().uuid("Please select a study"),
|
||||||
estimatedDuration: z
|
estimatedDuration: z
|
||||||
.number()
|
.number()
|
||||||
@@ -123,7 +123,7 @@ export function ExperimentForm({ mode, experimentId }: ExperimentFormProps) {
|
|||||||
if (mode === "edit" && experiment) {
|
if (mode === "edit" && experiment) {
|
||||||
form.reset({
|
form.reset({
|
||||||
name: experiment.name,
|
name: experiment.name,
|
||||||
description: experiment.description ?? "",
|
description: experiment.description ?? undefined,
|
||||||
studyId: experiment.studyId,
|
studyId: experiment.studyId,
|
||||||
estimatedDuration: experiment.estimatedDuration ?? undefined,
|
estimatedDuration: experiment.estimatedDuration ?? undefined,
|
||||||
status: experiment.status,
|
status: experiment.status,
|
||||||
|
|||||||
Reference in New Issue
Block a user