Skip to content

Commit

Permalink
chore(shadcn): run format
Browse files Browse the repository at this point in the history
  • Loading branch information
mfteuscher committed Feb 21, 2025
1 parent d198de9 commit 790967c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/shadcn/src/utils/updaters/update-css-vars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function updateCssVarsPluginV4(
// We do not want new components to override existing vars.
// Keep user defined vars.
if (key in newCssVars.get(v)!) {
continue;
continue
}
newCssVars.get(v)![key as keyof typeof cssVars] = value
}
Expand Down Expand Up @@ -461,7 +461,6 @@ function updateCssVarsPluginV4(
existingRootDecl
? existingRootDecl.replaceWith(lightDecl)
: rootRuleNode?.append(lightDecl)


const existingDarkDecl = darkRuleNode?.nodes.find(
(n) => n.type === "decl" && n.prop === prop
Expand Down

0 comments on commit 790967c

Please sign in to comment.