Skip to content

Commit

Permalink
fix(generator): fixed default options configuration not taking effect (
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshang918 committed May 5, 2022
1 parent 3fe38d7 commit 4789f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/generator/src/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const Generator = forwardRef<GeneratorRef, GeneratorType>(
setOptions((oldOption) => {
return {
...oldOption,
...options,
viewportConfig: {
...oldOption.viewportConfig,
...viewportConfig,
Expand All @@ -65,7 +66,6 @@ const Generator = forwardRef<GeneratorRef, GeneratorType>(
...headerConfig,
...options?.headerConfig,
},
...options,
}
})
}, [
Expand Down

0 comments on commit 4789f6f

Please sign in to comment.