fix: handling of shouldOverwriteCssVars (#7829)

* fix(shadcn): handling of shouldOverwriteCssVars

* chore: changeset
This commit is contained in:
shadcn
2025-07-16 17:44:25 +04:00
committed by GitHub
parent f85ca066dc
commit ed5237c231
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"shadcn": patch
---
fix handling of shouldOverwriteCssVars

View File

@@ -327,8 +327,7 @@ async function shouldOverwriteCssVars(
components: z.infer<typeof registryItemSchema>["name"][],
config: z.infer<typeof configSchema>
) {
let registryItems = await resolveRegistryItems(components, config)
let result = await fetchRegistry(registryItems)
let result = await fetchRegistry(components)
const payload = z.array(registryItemSchema).parse(result)
return payload.some(