diff --git a/packages/next/src/__builtins__/hooks/usePrefixCls.ts b/packages/next/src/__builtins__/hooks/usePrefixCls.ts index 7409ba7b652..657a91013f8 100644 --- a/packages/next/src/__builtins__/hooks/usePrefixCls.ts +++ b/packages/next/src/__builtins__/hooks/usePrefixCls.ts @@ -8,5 +8,5 @@ export const usePrefixCls = ( ) => { const getContext = ConfigProvider['getContext'] const prefix = props?.prefix ?? getContext()?.prefix ?? 'next-' - return `${prefix}${tag}` + return `${prefix}${tag ?? ''}` }