Skip to content

Commit

Permalink
fix(www): fix sidebar (#23301)
Browse files Browse the repository at this point in the history
* fix(www): fix sidebar

* Update sidebar.js
  • Loading branch information
wardpeet authored Apr 20, 2020
1 parent e095119 commit d69b217
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions www/src/components/sidebar/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ function Sidebar({
const initialHash = (() => {
const { openSectionHash = {} } = readLocalStorage(sidebarKey)
for (const [key, isOpen] of Object.entries(derivedHash)) {
if (isOpen) {
openSectionHash[key] = true
}
openSectionHash[key] = openSectionHash[key] ?? isOpen
}
return openSectionHash
})()
Expand Down

0 comments on commit d69b217

Please sign in to comment.