Skip to content

Commit 8cba9e3

Browse files
PROD-3232 #comment This commit moves the call to initalize the uni nav outside the scope of the Header component. #time 15m
1 parent edcc130 commit 8cba9e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src-ts/header/Header.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import UniNavSnippet from './universal-nav-snippet'
88

99
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1010
declare let tcUniNav: any
11+
UniNavSnippet(EnvironmentConfig.UNIVERSAL_NAV.URL)
1112

1213
const Header: FC = () => {
1314

@@ -18,8 +19,6 @@ const Header: FC = () => {
1819

1920
useEffect(() => {
2021

21-
UniNavSnippet(EnvironmentConfig.UNIVERSAL_NAV.URL)
22-
2322
if (headerInit.current || !profileReady || !tcUniNav) {
2423
return
2524
}

0 commit comments

Comments
 (0)