Jelajahi Sumber

fix run cmd validation (#3749)

ianedwards 2 tahun lalu
induk
melakukan
0f21f87f1c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);
       }