Skip to content

Commit

Permalink
fix(v2): Added back support for optional logo field in theme-classic …
Browse files Browse the repository at this point in the history
…navbarConfig
  • Loading branch information
SamChou19815 committed Oct 19, 2020
1 parent 1444770 commit 2e7aef4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import useThemeConfig from '../../utils/useThemeConfig';

const useLogo = (): useLogoReturns => {
const {
navbar: {logo},
navbar: {logo = {}},
} = useThemeConfig();
const {isDarkTheme} = useThemeContext();
const logoLink = useBaseUrl(logo.href || '/');
Expand Down

0 comments on commit 2e7aef4

Please sign in to comment.