We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a26a38 commit eeaacedCopy full SHA for eeaaced
1 file changed
frontend/src/pages/DataCleansing/Create/components/OperatorLibrary.tsx
@@ -103,16 +103,10 @@ const OperatorLibrary: React.FC<OperatorLibraryProps> = ({
103
const [selectedCategory, setSelectedCategory] = useState<string[]>([]);
104
105
const [operatorListFiltered, setOperatorListFiltered] = useState<OperatorI[]>([]);
106
-
107
- const hasCommon = (arr1: string[], arr2: string[]) => {
108
- const set1 = new Set(arr1);
109
- return arr2.some(item => set1.has(item));
110
- }
111
112
- // 按分类分组
+// 按分类分组
113
const groupedOperators = useMemo(() => {
114
const groups: { [key: string]: any[] } = {};
115
- let operatorFilteredList: OperatorI[] = [];
+ let operatorFilteredList: OperatorI[];
116
categoryOptions.forEach((cat: any) => {
117
groups[cat.id] = {
118
...cat,
0 commit comments