From 1ee480122b71d4c97b65bb2d53c4fa17263ae7fb Mon Sep 17 00:00:00 2001 From: shadcn Date: Tue, 17 Feb 2026 22:46:50 +0400 Subject: [PATCH] fix --- packages/shadcn/src/commands/init.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/shadcn/src/commands/init.ts b/packages/shadcn/src/commands/init.ts index 391074ae5a..eefbe6a597 100644 --- a/packages/shadcn/src/commands/init.ts +++ b/packages/shadcn/src/commands/init.ts @@ -298,11 +298,7 @@ export const init = new Command() } // Warn if the user is switching bases during reinit. - if ( - reinstallComponents.length && - existingConfig?.style && - components.length > 0 - ) { + if (existingConfig?.style && components.length > 0) { warnOnBaseSwitch(existingConfig.style as string, components[0]) }