diff --git a/packages/semi-ui/treeSelect/index.tsx b/packages/semi-ui/treeSelect/index.tsx index c5d71f2c8b..54de0e31df 100644 --- a/packages/semi-ui/treeSelect/index.tsx +++ b/packages/semi-ui/treeSelect/index.tsx @@ -794,7 +794,7 @@ class TreeSelect extends BaseComponent { }; const { content, isRenderInTag } = (item && treeNodeLabelProp in item) ? (renderSelectedItem as RenderSelectedItemInMultiple)(item, { index, onClose }) : - null; + ({} as any); if (isNull(content) || isUndefined(content)) { return; } @@ -1109,7 +1109,7 @@ class TreeSelect extends BaseComponent { if (isFunction(renderSelectedItem)) { const { content, isRenderInTag } = item && treeNodeLabelProp in item ? (renderSelectedItem as RenderSelectedItemInMultiple)(item, { index: idx, onClose }) : - null; + ({} as any); if (isRenderInTag) { return {content}; } else {