ソースを参照

fix run cmd validation (#3749)

ianedwards 2 年 前
コミット
ee404386a7
1 ファイル変更1 行追加1 行削除
  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(
   .refine(
     ({ app, source }) => {
     ({ 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);
         return app.services.every((svc) => svc.run.value.length > 0);
       }
       }