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

Commit c63bbc8

Browse files
committed
fix(docz): merge new config for useConfig hook
1 parent 2fe94d4 commit c63bbc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/docz/src/hooks/useConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface UseConfigObj extends Config {
1111
export const useConfig = (): UseConfigObj => {
1212
const state = useContext(doczState.context)
1313
const { linkComponent, transform, config, themeConfig = {} } = state
14-
const newConfig = merge(config ? config.themeConfig : {}, themeConfig)
14+
const newConfig = merge(themeConfig, config ? config.themeConfig : {})
1515
const transformed = transform ? transform(newConfig) : newConfig
1616

1717
return {

0 commit comments

Comments
 (0)