diff --git a/assets/src/components/cd/observers/Observers.tsx b/assets/src/components/cd/observers/Observers.tsx index 4a6df9c008..cdefc41c9c 100644 --- a/assets/src/components/cd/observers/Observers.tsx +++ b/assets/src/components/cd/observers/Observers.tsx @@ -15,6 +15,7 @@ import { GqlError } from 'components/utils/Alert' import { FullHeightTableWrap } from 'components/utils/layout/FullHeightTableWrap' import { ObserverFragment, + ObserverTargetType, useDeleteObserverMutation, useObserversQuery, } from 'generated/graphql' @@ -130,40 +131,45 @@ const columns = [ - {node.target.git && ( -
- Git - - {node.target.git.type} - - {node.target.git.repositoryId} - - -
- )} - {node.target.helm && ( -
- Helm - - {node.target.helm.chart} - {node.target.helm.url} - - {node.target.helm.provider} - - -
- )} - {node.target.oci && ( -
- OCI - - {node.target.oci.url} - - {node.target.oci.provider} - - -
- )} + {node.target.git && + node.target.target === ObserverTargetType.Git && ( +
+ Git + + {node.target.git.type} + + {node.target.git.repositoryId} + + +
+ )} + {node.target.helm && + node.target.target === ObserverTargetType.Helm && ( +
+ Helm + + + {node.target.helm.chart} + + {node.target.helm.url} + + {node.target.helm.provider} + + +
+ )} + {node.target.oci && + node.target.target === ObserverTargetType.Oci && ( +
+ OCI + + {node.target.oci.url} + + {node.target.oci.provider} + + +
+ )}