@@ -21,6 +21,7 @@ import {
21
21
AppEnvDeploymentConfigType ,
22
22
DEPLOYMENT_CONFIG_DIFF_SORT_KEY ,
23
23
DeploymentConfigDiffState ,
24
+ DeploymentHistorySingleValue ,
24
25
DeploymentStrategyType ,
25
26
DeploymentWithConfigType ,
26
27
EnvResourceType ,
@@ -297,7 +298,7 @@ export const usePipelineDeploymentConfig = ({
297
298
: recentDeploymentConfigWithoutStrategy ,
298
299
} )
299
300
300
- return getAppEnvDeploymentConfigList ( {
301
+ const { configList , ... rest } = getAppEnvDeploymentConfigList ( {
301
302
currentList : compareData || {
302
303
configMapData : null ,
303
304
deploymentTemplate : null ,
@@ -314,6 +315,28 @@ export const usePipelineDeploymentConfig = ({
314
315
convertVariables,
315
316
sortingConfig : { sortBy, sortOrder } ,
316
317
} )
318
+
319
+ // filtering out tooltipContent from secondary config, as we are not showing tooltip in right side
320
+ return {
321
+ ...rest ,
322
+ configList : configList . map ( ( list ) => ( {
323
+ ...list ,
324
+ secondaryConfig : {
325
+ ...list . secondaryConfig ,
326
+ list : {
327
+ ...list . secondaryConfig . list ,
328
+ values : {
329
+ ...list . secondaryConfig . list . values ,
330
+ strategy : Object . fromEntries (
331
+ Object . entries ( list . secondaryConfig . list . values . strategy ?? { } ) . filter (
332
+ ( [ key ] ) => key !== 'tooltipContent' ,
333
+ ) ,
334
+ ) as DeploymentHistorySingleValue ,
335
+ } ,
336
+ } ,
337
+ } ,
338
+ } ) ) ,
339
+ }
317
340
}
318
341
319
342
return null
0 commit comments