diff --git a/components/tree/utils/dropIndicator.tsx b/components/tree/utils/dropIndicator.tsx index d470870107..a0c8d26dbb 100644 --- a/components/tree/utils/dropIndicator.tsx +++ b/components/tree/utils/dropIndicator.tsx @@ -9,7 +9,7 @@ export default function dropIndicatorRender(props: { prefixCls: string; direction: 'ltr' | 'rtl'; }) { - const { dropPosition, dropLevelOffset, prefixCls, indent, direction } = props; + const { dropPosition, dropLevelOffset, prefixCls, indent, direction = 'ltr' } = props; const startPosition = direction === 'ltr' ? 'left' : 'right'; const endPosition = direction === 'ltr' ? 'right' : 'left'; const style: React.CSSProperties = {