ImagesTable: Replace null with an empty string in ClipboardCopy
ClipboardCopy component doesn't like null anymore so this replaces it with an empty string.
This commit is contained in:
parent
6100298bbd
commit
d834099a9b
3 changed files with 5 additions and 5 deletions
|
|
@ -33,7 +33,7 @@ const Ami = ({ status }: AmiPropTypes) => {
|
|||
clickTip="Copied"
|
||||
variant="inline-compact"
|
||||
>
|
||||
{'ami' in status.options ? status.options.ami : null}
|
||||
{'ami' in status.options ? status.options.ami : ''}
|
||||
</ClipboardCopy>
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ export const AzureDetails = ({ compose }: AzureDetailsPropTypes) => {
|
|||
clickTip="Copied"
|
||||
variant="inline-compact"
|
||||
>
|
||||
{uploadStatus?.image_name}
|
||||
{uploadStatus?.image_name || ''}
|
||||
</ClipboardCopy>
|
||||
)}
|
||||
</DescriptionListDescription>
|
||||
|
|
@ -364,7 +364,7 @@ export const GcpDetails = ({ compose }: GcpDetailsPropTypes) => {
|
|||
clickTip="Copied"
|
||||
variant="inline-compact"
|
||||
>
|
||||
{uploadStatus?.image_name}
|
||||
{uploadStatus?.image_name || ''}
|
||||
</ClipboardCopy>
|
||||
)}
|
||||
</DescriptionListDescription>
|
||||
|
|
@ -428,7 +428,7 @@ export const OciDetails = ({ compose }: OciDetailsPropTypes) => {
|
|||
variant="inline-compact"
|
||||
isBlock
|
||||
>
|
||||
{options?.url}
|
||||
{options?.url || ''}
|
||||
</ClipboardCopy>
|
||||
)}
|
||||
</DescriptionListDescription>
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ export const OciInstance = ({ compose, isExpired }: OciInstancePropTypes) => {
|
|||
ouiaId="oci-link"
|
||||
isBlock
|
||||
>
|
||||
{options?.url}
|
||||
{options?.url || ''}
|
||||
</ClipboardCopy>
|
||||
)}
|
||||
{isFetching && <Skeleton />}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue