Skip to content

Commit

Permalink
stop dockerfile detection if app exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards committed Sep 28, 2023
1 parent cff68bb commit c8aac0c
Showing 1 changed file with 2 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

0 comments on commit c8aac0c

Please sign in to comment.