Skip to content

Commit

Permalink
chore: remove unreachable logic
Browse files Browse the repository at this point in the history
  • Loading branch information
aojunhao123 committed Dec 5, 2024
1 parent 6193365 commit c96aee2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,6 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
mergedFieldNames,
);

// if multiple and maxCount is set, check if exceed maxCount
if (mergedMultiple && maxCount !== undefined) {
if (formattedKeyList.length > maxCount) {
return;
}
}

const labeledValues = convert2LabelValues(newRawValues);
setInternalValue(labeledValues);

Expand Down

0 comments on commit c96aee2

Please sign in to comment.