Skip to content

Commit 87ca4e8

Browse files
committed
topcoder-platform#101 fixed green indicator again
1 parent 2166a3d commit 87ca4e8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/components/TopNav/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const TopNav = ({
130130
})
131131
moreMenu[pos] = t
132132
window.localStorage.setItem('__top_nav_bar_state', JSON.stringify(_.assign({}, menu1)))
133-
setMoreMenu(moreMenu)
133+
setMoreMenu([...moreMenu])
134134
setChosenArrowPos(menuId)
135135
}
136136
}
@@ -258,13 +258,6 @@ const TopNav = ({
258258
// let the level 3 menu mounted first for sliding indicator to work
259259
setTimeout(() => {
260260
reArrangeLevel2Menu(activeLevel1Id, menuId)
261-
const menu = findLevel2Menu(activeLevel1Id, menuId)
262-
if (menu && menu.subMenu) {
263-
// select first level 3 item
264-
setActiveLevel3Id(menu.subMenu[0].id)
265-
// this requires the item element to be mounted first
266-
setIconSelectPos(menu.subMenu[0].id)
267-
}
268261
})
269262
}
270263

0 commit comments

Comments
 (0)