Skip to content

Commit

Permalink
stop dockerfile detection if app exists (#3676)
Browse files Browse the repository at this point in the history
Co-authored-by: Feroze Mohideen <[email protected]>
  • Loading branch information
ianedwards and Feroze Mohideen authored Sep 28, 2023
1 parent 873759c commit 095ec3e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const RepoSettings: React.FC<Props> = ({
);

useEffect(() => {
if (!branchContents) {
if (!branchContents || appExists) {
return;
}

Expand All @@ -85,7 +85,7 @@ const RepoSettings: React.FC<Props> = ({
if (!hasDockerfile) {
setValue("app.build.buildpacks", []);
}
}, [branchContents]);
}, [branchContents, appExists]);

return (
<div>
Expand Down Expand Up @@ -266,6 +266,7 @@ const RepoSettings: React.FC<Props> = ({
projectId={projectId}
build={b}
source={source}
autoDetectionDisabled={appExists}
/>
))
.exhaustive()}
Expand Down

0 comments on commit 095ec3e

Please sign in to comment.