Skip to content

Commit

Permalink
πŸ› Fix side nav
Browse files Browse the repository at this point in the history
There was a small UI bug where we were conditionally adding the API section for draft pages.
In production this was leaving a small hoverable element because the undefined variable in the array was still iterated over to create a UI element.

Test plan:
* Expect visual regression to be fixed in production.
* Expect draft pages to be available in development.
  • Loading branch information
MeganSteenkamp committed Oct 4, 2023
1 parent d32a9a8 commit b6e3ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/navigation/sideNavConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export default [
{ title: 'Farmlands' },
]
},
import.meta.env.MODE === 'development' && {
...import.meta.env.MODE === 'development' ? {
title: 'API',
subTitle: 'For developers',
icon: 'Settings',
},
} : [],
];

0 comments on commit b6e3ac1

Please sign in to comment.