Przeglądaj źródła

fix run cmd validation (#3749)

ianedwards 2 lat temu
rodzic
commit
0f21f87f1c
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
       }