Skip to content

Commit

Permalink
Adds environmentCount check
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed Oct 4, 2023
1 parent a741215 commit 7e4aa41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ export const PageProject = ({ router }) => {
<div className="environments-wrapper">
<div className="environments-all">
<Environments environments={environments} project={project} refresh={handleRefetch} environmentCount={environmentCount}/>
{
environmentCount === 0 && (
<NewEnvironment inputProjectName={project.name} productionEnvironment={project.productionEnvironment} refresh={handleRefetch} environmentCount={environmentCount} />
)
}
</div>
</div>
</ProjectDetailsWrapper>
Expand Down

0 comments on commit 7e4aa41

Please sign in to comment.