diff --git a/src/store/states/multipleSpacesLayout/saga/fetchBreadcrumbsItemsByCommonId.ts b/src/store/states/multipleSpacesLayout/saga/fetchBreadcrumbsItemsByCommonId.ts index 39dd5d2f9d..b505658868 100644 --- a/src/store/states/multipleSpacesLayout/saga/fetchBreadcrumbsItemsByCommonId.ts +++ b/src/store/states/multipleSpacesLayout/saga/fetchBreadcrumbsItemsByCommonId.ts @@ -21,7 +21,9 @@ const fetchProjectsInfoByActiveCommonId = async ( const finalCommons: Common[] = []; let commonForSiblings: Common | null = activeCommon; - let lastParentCommon: Common | null = null; + let lastParentCommon: Common | null = !commonForSiblings.directParent + ? commonForSiblings + : null; while (commonForSiblings?.directParent?.commonId) { const commonIdForProjects = commonForSiblings.directParent.commonId;