Skip to content

Commit 858b0e3

Browse files
committed
fix: cannot update step name if no variable
1 parent 8030d34 commit 858b0e3

File tree

1 file changed

+3
-1
lines changed
  • packages/backend/src/apps/toolbox/actions/for-each

1 file changed

+3
-1
lines changed

packages/backend/src/apps/toolbox/actions/for-each/schema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,7 @@ export const parameterSchema = z.object({
147147
})
148148
.refine((v) => VARIABLE_REGEX.test(v), {
149149
message: PARAMETER_ERROR_MESSAGE,
150-
}),
150+
})
151+
// could be null when user is updating the step name before selecting a variable
152+
.nullish(),
151153
})

0 commit comments

Comments
 (0)