Skip to content

Commit b757137

Browse files
committed
chore: chart selector css fixes
1 parent 3e560e4 commit b757137

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/AppSelector/ChartSelector.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { useState } from 'react'
1817
import { useParams, useHistory, generatePath, useRouteMatch } from 'react-router-dom'
1918
import { GroupBase } from 'react-select'
2019
import {
2120
useAsync,
22-
SelectPickerProps,
2321
SelectPickerOptionType,
2422
ContextSwitcher,
23+
Icon,
2524
} from '@devtron-labs/devtron-fe-common-lib'
2625
import { mapByKey } from '../common'
2726
import { ChartSelectorType } from './AppSelector.types'
@@ -59,10 +58,14 @@ export default function ChartSelector({
5958
options:
6059
result?.result?.map((res) => ({
6160
value: res[apiPrimaryKey || primaryKey],
62-
label: `${res.chart_name} / ${res[primaryValue]}`,
61+
label: res[primaryValue],
62+
description: res.chart_name || res.docker_artifact_store_id,
63+
endIcon: res.deprecated && <Icon name="ic-warning" color={null} size={16} />,
6364
})) || [],
6465
},
6566
]
67+
68+
console.log(result)
6669
const selectedChartLabel = listMap.has(_primaryKey) ? (listMap.get(_primaryKey)[primaryValue] as string) : ''
6770

6871
return (

0 commit comments

Comments
 (0)