Unverified Commit e57093b6 authored by yqwoe's avatar yqwoe Committed by GitHub

Fix menu selection (#3047)

parent 6f5d0193
......@@ -143,7 +143,7 @@ const AssignMenu: React.FC<AssignMenuProps> = (props) => {
const filterHalfKeys: any = useCallback(
(keys: Key[]) => {
const treeArray = treeToArray(treeData);
return keys.filter((key) => treeArray.some((tree) => tree.value == key && !tree.isLeaf));
return keys.filter((key) => treeArray.some((tree) => tree.value == key && tree.isLeaf));
},
[treeData]
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment