diff --git a/dashboard/src/main/home/app-dashboard/create-app/RepoSettings.tsx b/dashboard/src/main/home/app-dashboard/create-app/RepoSettings.tsx index 94ff61baa3..fe9048b648 100644 --- a/dashboard/src/main/home/app-dashboard/create-app/RepoSettings.tsx +++ b/dashboard/src/main/home/app-dashboard/create-app/RepoSettings.tsx @@ -74,7 +74,7 @@ const RepoSettings: React.FC = ({ ); useEffect(() => { - if (!branchContents) { + if (!branchContents || appExists) { return; } @@ -85,7 +85,7 @@ const RepoSettings: React.FC = ({ if (!hasDockerfile) { setValue("app.build.buildpacks", []); } - }, [branchContents]); + }, [branchContents, appExists]); return (