Skip to content

Commit f07b4f3

Browse files
authored
Merge pull request #86 from postmanlabs/develop
Dev to Prod navbar api
2 parents a25e204 + 92634e6 commit f07b4f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Header/Header.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ const Header = (props) => {
114114
const navbarKeys = ['items', 'media', 'type'];
115115
const navtopicsdropdownKeys = ['items', 'type']
116116

117-
if (navbarKeys.every(key => Object.keys(navbarDataLocal).includes(key))) {
118-
setData(navbarDataLocal)
117+
if (navbarKeys.every(key => Object.keys(navbarData).includes(key))) {
118+
setData(navbarData)
119119
} else {
120120
setData(navbarDataLocal)
121121
}

0 commit comments

Comments
 (0)