Skip to content

Commit

Permalink
Sidebar visibility by service ( API TOKENS ) fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed Aug 10, 2024
1 parent ed01cd3 commit 7b292e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/services/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const checkVisibility = (visibility: boolean, service?: string) => {
const checkVisibility = (visibility: boolean, service?: any) => {
if (!visibility) return false
return service ? true : 'disabled'
}
Expand All @@ -9,7 +9,7 @@ export const updateSidebarVisibility = (wellKnown: any) => ({
...wellKnown.visibility,
mainSidebar: {
...wellKnown.ui.visibility.mainSidebar,
apiTokens: checkVisibility(wellKnown.ui.visibility.mainSidebar.apiTokens, wellKnown.apiTokens),
apiTokens: checkVisibility(wellKnown.ui.visibility.mainSidebar.apiTokens, wellKnown.m2mOauthClient),
},
},
})

0 comments on commit 7b292e9

Please sign in to comment.