From 07ae59378fe569452a40497fc21d83ae7914da37 Mon Sep 17 00:00:00 2001 From: Andrey Mikhadyuk Date: Wed, 29 Nov 2023 20:26:46 +0400 Subject: [PATCH] use cached commons in the breadcrumbs commons fetch --- .../saga/fetchBreadcrumbsItemsByCommonId.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/states/multipleSpacesLayout/saga/fetchBreadcrumbsItemsByCommonId.ts b/src/store/states/multipleSpacesLayout/saga/fetchBreadcrumbsItemsByCommonId.ts index c7e27de108..b99dbf8220 100644 --- a/src/store/states/multipleSpacesLayout/saga/fetchBreadcrumbsItemsByCommonId.ts +++ b/src/store/states/multipleSpacesLayout/saga/fetchBreadcrumbsItemsByCommonId.ts @@ -9,7 +9,7 @@ import { MultipleSpacesLayoutState, ProjectsStateItem } from "../types"; const fetchProjectsInfoByActiveCommonId = async ( commonId: string, ): Promise => { - const activeCommon = await CommonService.getCommonById(commonId); + const activeCommon = await CommonService.getCommonById(commonId, true); if (!activeCommon) { return []; @@ -17,6 +17,7 @@ const fetchProjectsInfoByActiveCommonId = async ( const commons = await CommonService.getAllParentCommonsForCommon( activeCommon, + true, ); return [...commons, activeCommon].map((common) => ({