Skip to content

Commit

Permalink
fix: cast boolean on length environment (#5017)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaimwa9 authored Jan 22, 2025
1 parent 7865078 commit c0e8b81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/web/components/pages/CreateEnvironmentPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import AddMetadataToEntity from 'components/metadata/AddMetadataToEntity'
import { getSupportedContentType } from 'common/services/useSupportedContentType'
import { getStore } from 'common/store'
import ProjectProvider, {
CreateEnvType,
ProjectProviderType,
CreateEnvType
} from 'common/providers/ProjectProvider'
import AccountStore from 'common/stores/account-store'
import Utils from 'common/utils/utils'
Expand Down Expand Up @@ -138,7 +137,7 @@ const CreateEnvironmentPage: React.FC<CreateEnvironmentPageProps> = ({
/>
</CondensedRow>
<CondensedRow>
{project?.environments?.length && (
{!!project?.environments?.length && (
<InputGroup
tooltip='This will copy feature enabled states and remote config values from the selected environment.'
title='Clone from environment'
Expand Down

0 comments on commit c0e8b81

Please sign in to comment.