Skip to content

Commit

Permalink
Update src/TreeSelect.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: afc163 <[email protected]>
  • Loading branch information
huangkairan and afc163 authored Jun 28, 2024
1 parent 0e152ce commit ababe79
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,7 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)

// Fill missing label & status
if (entity) {
if (treeTitleRender) {
rawLabel = treeTitleRender(entity.node);
} else {
rawLabel = rawLabel ?? getLabel(entity.node);
}
rawLabel = treeTitleRender ? treeTitleRender(entity.node) : rawLabel ?? getLabel(entity.node);
rawDisabled = entity.node.disabled;
} else if (rawLabel === undefined) {
// We try to find in current `labelInValue` value
Expand Down

0 comments on commit ababe79

Please sign in to comment.