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..c817a394e5 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 (
@@ -266,6 +266,7 @@ const RepoSettings: React.FC = ({ projectId={projectId} build={b} source={source} + autoDetectionDisabled={appExists} /> )) .exhaustive()}