fix: [CDE-405] Added the additional null/undefined check for showing the "No Change" label (#2860)

* 

Added prettier code formatting
* 

feat: [CDE-405] Changes
pull/3576/head
Neel Khamar 2024-10-25 03:49:59 +00:00 committed by Harness
parent f78ae3839a
commit 8d5f3a6f8b
1 changed files with 5 additions and 1 deletions

View File

@ -206,7 +206,11 @@ export const RenderRepository: Renderer<CellProps<TypesGitspaceConfig>> = ({ row
</Layout.Horizontal>
</Layout.Horizontal>
<Text font={{ size: 'small' }} color={Color.GREY_450}>
{has_git_changes ? getString('cde.hasChange') : getString('cde.noChange')}
{has_git_changes
? getString('cde.hasChange')
: has_git_changes !== null && has_git_changes !== undefined
? getString('cde.noChange')
: ''}
</Text>
</Layout.Vertical>
)