Skip to content

Commit

Permalink
fix: ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
YumoImer committed Jul 22, 2024
1 parent 9bf6acd commit f890ec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/genStyleUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export default function genStyleUtils<
},
);

if (cssVar) {
if (cssVar && typeof defaultComponentToken === 'object') {
Object.keys(defaultComponentToken).forEach((key) => {
defaultComponentToken[key] = `var(${token2CSSVar(
key,
Expand Down
2 changes: 2 additions & 0 deletions src/util/statistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export function merge<CompTokenMap extends TokenMap>(...objs: Partial<CompTokenM
const ret = {} as CompTokenMap;

objs.forEach((obj) => {
if (typeof obj !== 'object') return;

const keys = Object.keys(obj);

keys.forEach((key) => {
Expand Down

0 comments on commit f890ec8

Please sign in to comment.