Skip to content

Commit f5413ad

Browse files
committed
fix: lint errors
1 parent 873c642 commit f5413ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Pages/GlobalConfigurations/ClustersAndEnvironments/EnvironmentList.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ const ClustersEnvironmentsList = ({
8686
const namespaceEnvList: EnvNamespaceRowType[] = useMemo(
8787
() => [
8888
...environments.map(
89-
({ id: envId, environmentName, namespace, isProd: isProdEnv, category, description }) => ({
89+
({ id: envId, environmentName, namespace, isProd: isProdEnv, category: envCategory, description }) => ({
9090
clusterId,
9191
envId,
9292
environmentName,
9393
namespace,
9494
envType: isProdEnv ? 'Production' : 'Non Production',
95-
category: category?.name ?? '',
95+
category: envCategory?.name ?? '',
9696
description,
9797
// false for virtual clusters and actual namespaces might not exist, for physical cluster showing not found if does not exist
9898
namespaceNotFound: isVirtualCluster || !showUnmappedEnvs ? false : !namespacesMap[namespace],
@@ -201,7 +201,7 @@ const ClustersEnvironmentsList = ({
201201
}
202202

203203
return sortedFilteredList.map(
204-
({ namespace, namespaceNotFound, envId, envType, environmentName, category, description }) => (
204+
({ namespace, namespaceNotFound, envId, envType, environmentName, category: envCategory, description }) => (
205205
<div
206206
role="button"
207207
key={`${envId}-${namespace}-${environmentName}`}
@@ -220,8 +220,8 @@ const ClustersEnvironmentsList = ({
220220
</Tooltip>
221221
<span>{envType}</span>
222222
{isFELibAvailable && (
223-
<Tooltip content={category}>
224-
<span className="dc__truncate">{category}</span>
223+
<Tooltip content={envCategory}>
224+
<span className="dc__truncate">{envCategory}</span>
225225
</Tooltip>
226226
)}
227227
<Tooltip content={description}>

0 commit comments

Comments
 (0)