mirror of https://github.com/harness/drone.git
fix: [CDE-405] Added the additional null/undefined check for showing the "No Change" label (#2860)
* Added prettier code formatting * feat: [CDE-405] Changespull/3576/head
parent
f78ae3839a
commit
8d5f3a6f8b
|
@ -206,7 +206,11 @@ export const RenderRepository: Renderer<CellProps<TypesGitspaceConfig>> = ({ row
|
||||||
</Layout.Horizontal>
|
</Layout.Horizontal>
|
||||||
</Layout.Horizontal>
|
</Layout.Horizontal>
|
||||||
<Text font={{ size: 'small' }} color={Color.GREY_450}>
|
<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>
|
</Text>
|
||||||
</Layout.Vertical>
|
</Layout.Vertical>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue