From f67f40c62035efd80327c01210391ded2b6e8610 Mon Sep 17 00:00:00 2001 From: ianedwards Date: Wed, 13 Sep 2023 15:06:53 -0400 Subject: [PATCH] update validator (#3565) --- dashboard/src/main/home/app-dashboard/app-view/AppView.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dashboard/src/main/home/app-dashboard/app-view/AppView.tsx b/dashboard/src/main/home/app-dashboard/app-view/AppView.tsx index 0009216e36..e21d853a86 100644 --- a/dashboard/src/main/home/app-dashboard/app-view/AppView.tsx +++ b/dashboard/src/main/home/app-dashboard/app-view/AppView.tsx @@ -8,7 +8,6 @@ import Spacer from "components/porter/Spacer"; import AppDataContainer from "./AppDataContainer"; -import web from "assets/web.png"; import AppHeader from "./AppHeader"; import { LatestRevisionProvider } from "./LatestRevisionContext"; @@ -19,7 +18,10 @@ export const porterAppValidator = z.object({ repo_name: z.string().optional(), build_context: z.string().optional(), builder: z.string().optional(), - buildpacks: z.array(z.string()).optional(), + buildpacks: z + .string() + .transform((s) => s.split(",")) + .optional(), dockerfile: z.string().optional(), image_repo_uri: z.string().optional(), porter_yaml_path: z.string().optional(),