Skip to content

Commit

Permalink
🌈 style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
huangkairan committed Nov 29, 2023
1 parent b621b9d commit 5e51a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
let label;
// Ensure that when labelInValue is true, if label is undefined, it remains undefined.
if (labelInValue && targetItem.label !== undefined) {
label = targetItem.label
label = targetItem.label;
} else if (!labelInValue && treeTitleRender) {
label = treeTitleRender(targetItem);
}
Expand Down

0 comments on commit 5e51a89

Please sign in to comment.