소스 검색

修改搜索

Renxy 2 년 전
부모
커밋
6c5ffdfdbc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/DDComponents/ProjectField/index.js

+ 1 - 1
src/components/DDComponents/ProjectField/index.js

@@ -22,7 +22,7 @@ function DDProjectField(props) {
         onChange(String(value));
       }}
       filterOption={(input, option) =>
-        option.children.join('').toLowerCase().includes(input.toLowerCase())
+        (option?.label ?? '').toLowerCase().includes(input.toLowerCase())
       }
       options={projectList.map((item) => {
         return {