From 7b292e90c5e4d5f68dabd1dbf122c8dd27d65305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Matias=CC=8Cko?= Date: Sat, 10 Aug 2024 16:05:41 +0200 Subject: [PATCH] Sidebar visibility by service ( API TOKENS ) fix --- src/common/services/sidebar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/services/sidebar.ts b/src/common/services/sidebar.ts index 331dc0d..fcaae71 100644 --- a/src/common/services/sidebar.ts +++ b/src/common/services/sidebar.ts @@ -1,4 +1,4 @@ -const checkVisibility = (visibility: boolean, service?: string) => { +const checkVisibility = (visibility: boolean, service?: any) => { if (!visibility) return false return service ? true : 'disabled' } @@ -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), }, }, })