mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: add default value to context path
This commit is contained in:
parent
7245e7dfd7
commit
f5ca72ddd7
@ -36,7 +36,7 @@ const mySchema = z.discriminatedUnion("buildType", [
|
||||
invalid_type_error: "Dockerfile path is required",
|
||||
})
|
||||
.min(1, "Dockerfile required"),
|
||||
dockerContextPath: z.string().nullable(),
|
||||
dockerContextPath: z.string().nullable().default(""),
|
||||
}),
|
||||
z.object({
|
||||
buildType: z.literal("heroku_buildpacks"),
|
||||
@ -77,6 +77,8 @@ export const ShowBuildChooseForm = ({ applicationId }: Props) => {
|
||||
resolver: zodResolver(mySchema),
|
||||
});
|
||||
|
||||
console.log(form.formState.errors);
|
||||
|
||||
const buildType = form.watch("buildType");
|
||||
useEffect(() => {
|
||||
if (data) {
|
||||
|
Loading…
Reference in New Issue
Block a user