diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/ManageTagsDialog/TagsInput.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/ManageTagsDialog/TagsInput.tsx index 7d8e046cbb01..a50336bbbcea 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/ManageTagsDialog/TagsInput.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/ManageTagsDialog/TagsInput.tsx @@ -2,7 +2,6 @@ import { Autocomplete, type AutocompleteProps, Checkbox, - Chip, createFilterOptions, type FilterOptionsState, TextField, @@ -14,7 +13,6 @@ import IndeterminateCheckBoxIcon from '@mui/icons-material/IndeterminateCheckBox import type { ITag, ITagType } from 'interfaces/tags'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import Add from '@mui/icons-material/Add'; -import type { AutocompleteRenderGetTagProps } from '@mui/material/Autocomplete/Autocomplete'; export type TagOption = { title: string; @@ -88,22 +86,6 @@ export const TagsInput = ({ ); }; - const renderTags = ( - tagValue: TagOption[], - getTagProps: AutocompleteRenderGetTagProps, - ) => - tagValue.map((option, index) => { - const exists = existingTags.some( - (existingTag) => - existingTag.value === option.title && - existingTag.type === tagType.name, - ); - if (exists && indeterminateOptions === undefined) { - return null; - } - return ; - }); - const filterOptions = ( options: TagOption[], params: FilterOptionsState, @@ -134,7 +116,6 @@ export const TagsInput = ({ placeholder='Select Values' options={options} value={selectedOptions} - renderTags={renderTags} isOptionEqualToValue={(option, value) => { if (value.inputValue && value.inputValue !== '') { return option.title === value.inputValue;