Skip to content

Commit

Permalink
fix: logic of merged
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Sep 3, 2024
1 parent be0c107 commit 201592f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function initRenderer(opts: IOpts) {
}

function setOptions(newOpts: IOpts): void {
opts = toMerged(opts, newOpts)
opts = { ...opts, ...newOpts }
styleMapping = buildTheme(opts)
}

Expand Down

0 comments on commit 201592f

Please sign in to comment.