Skip to content

Commit 2be1e77

Browse files
committed
fix: tree-select maximum error when set slot tilte
1 parent 6ef9404 commit 2be1e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/tree-select/utils.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function convertChildrenToData(nodes: any[]): any[] {
2020
};
2121
Object.keys(restSlot).forEach(p => {
2222
if (typeof restSlot[p] === 'function') {
23-
data[p] = restSlot[p]();
23+
data[p] = <>{restSlot[p]()}</>;
2424
}
2525
});
2626
const childData = convertChildrenToData(children);

0 commit comments

Comments
 (0)