Explorar el Código

fix run cmd validation (#3749)

ianedwards hace 2 años
padre
commit
ee404386a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dashboard/src/lib/porter-apps/index.ts

+ 1 - 1
dashboard/src/lib/porter-apps/index.ts

@@ -91,7 +91,7 @@ export const porterAppFormValidator = z
   })
   .refine(
     ({ app, source }) => {
-      if (source.type === "docker-registry" || app.build.method === "pack") {
+      if (source.type !== "docker-registry" && app.build.method === "pack") {
         return app.services.every((svc) => svc.run.value.length > 0);
       }