Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz): merge new config for useConfig hook
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Mar 11, 2019
1 parent 2fe94d4 commit c63bbc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/docz/src/hooks/useConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface UseConfigObj extends Config {
export const useConfig = (): UseConfigObj => {
const state = useContext(doczState.context)
const { linkComponent, transform, config, themeConfig = {} } = state
const newConfig = merge(config ? config.themeConfig : {}, themeConfig)
const newConfig = merge(themeConfig, config ? config.themeConfig : {})
const transformed = transform ? transform(newConfig) : newConfig

return {
Expand Down

0 comments on commit c63bbc8

Please sign in to comment.