diff --git a/src/components/molecules/ManageableSidebar/ManageableSidebar.tsx b/src/components/molecules/ManageableSidebar/ManageableSidebar.tsx index 65d8d8a..568c2c9 100644 --- a/src/components/molecules/ManageableSidebar/ManageableSidebar.tsx +++ b/src/components/molecules/ManageableSidebar/ManageableSidebar.tsx @@ -6,7 +6,11 @@ import { useSelector } from 'react-redux' import type { RootState } from 'store/store' // import { HEAD_FIRST_ROW, SIDEBAR_CLUSTER_HEIGHT } from 'constants/blocksSizes' import { HEAD_FIRST_ROW } from 'constants/blocksSizes' -import { BASE_API_GROUP, BASE_API_VERSION } from 'constants/customizationApiGroupAndVersion' +import { + BASE_API_GROUP, + BASE_API_VERSION, + CUSTOMIZATION_SIDEBAR_FALLBACK_ID, +} from 'constants/customizationApiGroupAndVersion' import { Styled } from './styled' type TManageableSidebarProps = { @@ -56,6 +60,8 @@ export const ManageableSidebar: FC = ({ return acc }, {}) + console.log(namespace ? `${CUSTOMIZATION_SIDEBAR_FALLBACK_ID}-namespaced` : CUSTOMIZATION_SIDEBAR_FALLBACK_ID) + return ( = ({ }} pathname={pathname} idToCompare={idToCompare} + fallbackIdToCompare={ + namespace ? `${CUSTOMIZATION_SIDEBAR_FALLBACK_ID}-namespaced` : CUSTOMIZATION_SIDEBAR_FALLBACK_ID + } currentTags={currentTags} noMarginTop /> diff --git a/src/constants/customizationApiGroupAndVersion.ts b/src/constants/customizationApiGroupAndVersion.ts index 5700560..dc40f62 100644 --- a/src/constants/customizationApiGroupAndVersion.ts +++ b/src/constants/customizationApiGroupAndVersion.ts @@ -34,6 +34,10 @@ export const BASE_CUSTOMIZATION_NAVIGATION_RESOURCE = import.meta.env.DEV ? window._env_.CUSTOMIZATION_NAVIGATION_RESOURCE || import.meta.env.VITE_CUSTOMIZATION_NAVIGATION_RESOURCE : window._env_.CUSTOMIZATION_NAVIGATION_RESOURCE +export const CUSTOMIZATION_SIDEBAR_FALLBACK_ID = import.meta.env.DEV + ? window._env_.CUSTOMIZATION_SIDEBAR_FALLBACK_ID || import.meta.env.VITE_CUSTOMIZATION_SIDEBAR_FALLBACK_ID + : window._env_.CUSTOMIZATION_SIDEBAR_FALLBACK_ID + export const BASE_USE_NAMESPACE_NAV = import.meta.env.DEV ? window._env_.USE_NAMESPACE_NAV || import.meta.env.VITE_USE_NAMESPACE_NAV : window._env_.USE_NAMESPACE_NAV