diff --git a/packages/odf/components/storage-consumers/client-list.tsx b/packages/odf/components/storage-consumers/client-list.tsx index 23427c393..c80168ff3 100644 --- a/packages/odf/components/storage-consumers/client-list.tsx +++ b/packages/odf/components/storage-consumers/client-list.tsx @@ -25,7 +25,13 @@ import { useModal, } from '@openshift-console/dynamic-plugin-sdk'; import { ModalComponent } from '@openshift-console/dynamic-plugin-sdk/lib/app/modal-support/ModalProvider'; -import { Button, Icon, Popover, PopoverPosition } from '@patternfly/react-core'; +import * as _ from 'lodash-es'; +import { + Button, + ButtonVariant, + Popover, + PopoverPosition, +} from '@patternfly/react-core'; import { TrashIcon } from '@patternfly/react-icons'; import { sortable } from '@patternfly/react-table'; import { StorageConsumerModel } from '../../models'; @@ -172,7 +178,9 @@ const LastHeartBeat: React.FC = ({ heartbeat }) => { } return null; })(); - return ( + return _.isEmpty(heartbeat) ? ( + <>- + ) : ( {Component && }   @@ -197,6 +205,9 @@ const DataFoudationVersion: React.FC = ({ const isVersionMismatch = getMajorMinorVersion(clientVersion) !== getMajorMinorVersion(currentVersion); + if (_.isEmpty(clientVersion)) { + return <>-; + } return isVersionMismatch ? ( clearInterval(id); - }); + }, [allowDeletion, setAllowDeletion, obj?.status?.lastHeartbeat]); return ( <> - {obj?.status?.client?.name} + {obj?.status?.client?.name || '-'} - {obj?.status?.client?.clusterId} + {obj?.status?.client?.clusterId || '-'} - {getOpenshiftVersion(obj)} + {getOpenshiftVersion(obj) || '-'} @@ -268,9 +280,13 @@ const StorageClientRow: React.FC< - deleteClient(obj)}> + );