Skip to content

Commit

Permalink
fix: make active tab behaviour work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
earlbread committed Oct 31, 2024
1 parent f967cb9 commit d575ab5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/component/project/Project/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ export const Project = () => {

const activeTab = [...filteredTabs]
.reverse()
.find((tab) => pathname.startsWith(tab.path));
.find((tab) => {
const tabPath = isOss() && tab.name === 'settings'
? `${basePath}/settings`
: tab.path;
return pathname.startsWith(tabPath);
});

useEffect(() => {
const created = params.get('created');
Expand Down

0 comments on commit d575ab5

Please sign in to comment.