mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-30 08:04:18 +00:00
fix(shadcn): check for empty css vars (#6733)
* fix(shadcn): check for empty css vars * chore: changeset
This commit is contained in:
5
.changeset/shaggy-months-tease.md
Normal file
5
.changeset/shaggy-months-tease.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shadcn": patch
|
||||
---
|
||||
|
||||
check for empty css vars
|
||||
@@ -24,7 +24,7 @@ export async function updateCssVars(
|
||||
tailwindConfig?: z.infer<typeof registryItemTailwindSchema>["config"]
|
||||
}
|
||||
) {
|
||||
if (!config.resolvedPaths.tailwindCss) {
|
||||
if (!config.resolvedPaths.tailwindCss || !Object.keys(cssVars ?? {}).length) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user