@@ -86,13 +86,13 @@ const ClustersEnvironmentsList = ({
86
86
const namespaceEnvList : EnvNamespaceRowType [ ] = useMemo (
87
87
( ) => [
88
88
...environments . map (
89
- ( { id : envId , environmentName, namespace, isProd : isProdEnv , category, description } ) => ( {
89
+ ( { id : envId , environmentName, namespace, isProd : isProdEnv , category : envCategory , description } ) => ( {
90
90
clusterId,
91
91
envId,
92
92
environmentName,
93
93
namespace,
94
94
envType : isProdEnv ? 'Production' : 'Non Production' ,
95
- category : category ?. name ?? '' ,
95
+ category : envCategory ?. name ?? '' ,
96
96
description,
97
97
// false for virtual clusters and actual namespaces might not exist, for physical cluster showing not found if does not exist
98
98
namespaceNotFound : isVirtualCluster || ! showUnmappedEnvs ? false : ! namespacesMap [ namespace ] ,
@@ -201,7 +201,7 @@ const ClustersEnvironmentsList = ({
201
201
}
202
202
203
203
return sortedFilteredList . map (
204
- ( { namespace, namespaceNotFound, envId, envType, environmentName, category, description } ) => (
204
+ ( { namespace, namespaceNotFound, envId, envType, environmentName, category : envCategory , description } ) => (
205
205
< div
206
206
role = "button"
207
207
key = { `${ envId } -${ namespace } -${ environmentName } ` }
@@ -220,8 +220,8 @@ const ClustersEnvironmentsList = ({
220
220
</ Tooltip >
221
221
< span > { envType } </ span >
222
222
{ isFELibAvailable && (
223
- < Tooltip content = { category } >
224
- < span className = "dc__truncate" > { category } </ span >
223
+ < Tooltip content = { envCategory } >
224
+ < span className = "dc__truncate" > { envCategory } </ span >
225
225
</ Tooltip >
226
226
) }
227
227
< Tooltip content = { description } >
0 commit comments