1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 03:47:09 +00:00

Fix search tags not by RGB color (#7708)

* remove search tag by RGB color

* remove search tag by tag RGB color
This commit is contained in:
Michael An
2025-04-07 16:04:14 +08:00
committed by GitHub
parent 09581a961a
commit ee09f7b0f8
3 changed files with 12 additions and 17 deletions

View File

@@ -8,7 +8,7 @@ import DeleteTags from './delete-tags';
import { Utils } from '../../../../utils/utils';
import { KeyCodes } from '../../../../constants';
import { gettext } from '../../../../utils/constants';
import { getTagColor, getTagId, getTagName, getTagsByNameOrColor } from '../../../../tag/utils/cell';
import { getTagColor, getTagId, getTagName, getTagsByName } from '../../../../tag/utils/cell';
import { getRecordIdFromRecord } from '../../../../metadata/utils/cell';
import { SELECT_OPTION_COLORS } from '../../../../metadata/constants';
import { getRowById } from '../../utils/table';
@@ -38,7 +38,7 @@ const TagsEditor = ({
const editorRef = useRef(null);
const selectItemRef = useRef(null);
const displayTags = useMemo(() => getTagsByNameOrColor(allTagsRef.current, searchValue), [searchValue, allTagsRef]);
const displayTags = useMemo(() => getTagsByName(allTagsRef.current, searchValue), [searchValue, allTagsRef]);
const isShowCreateBtn = useMemo(() => {
if (!canAddTag || !searchValue || !Utils.isFunction(addNewTag)) return false;