Skip to content

Commit

Permalink
Fix menu selection (DataLinkDC#3047)
Browse files Browse the repository at this point in the history
  • Loading branch information
yqwoe authored Jan 23, 2024
1 parent 6f5d019 commit e57093b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);
Expand Down

0 comments on commit e57093b

Please sign in to comment.