Skip to content

Commit

Permalink
fix settings glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
teallarson committed Jul 13, 2022
1 parent 83fc175 commit 97df035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airbyte-webapp/src/views/layout/SideBar/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const useCalculateSidebarStyles = () => {
const { location } = useRouter();

const menuItemStyle = (isActive: boolean) => {
const isChild = location.pathname.split("/").length > 4 && !location.pathname.includes("settings");
const isChild = location.pathname.split("/").length > 4 && location.pathname.split("/")[3] !== "settings";
return classnames(styles.menuItem, { [styles.active]: isActive, [styles.activeChild]: isChild && isActive });
};

Expand Down

0 comments on commit 97df035

Please sign in to comment.