[WEB-2221] fix: app sidebar and favorites improvement (#5357)
* fix: project collapsible toggle * fix: project favorite redirection * chore: favorite redirection scroll into view implementation * fix: use favorite item details project details
This commit is contained in:
parent
edb04a33fd
commit
d9c9d85d38
5 changed files with 23 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ export const useFavoriteItemDetails = (workspaceSlug: string, favorite: IFavorit
|
|||
|
||||
// store hooks
|
||||
const { getViewById } = useProjectView();
|
||||
const { currentProjectDetails } = useProject();
|
||||
const { getProjectById } = useProject();
|
||||
const { getCycleById } = useCycle();
|
||||
const { getModuleById } = useModule();
|
||||
|
||||
|
|
@ -23,6 +23,8 @@ export const useFavoriteItemDetails = (workspaceSlug: string, favorite: IFavorit
|
|||
const cycleDetail = getCycleById(favoriteItemId ?? "");
|
||||
const moduleDetail = getModuleById(favoriteItemId ?? "");
|
||||
|
||||
const currentProjectDetails = getProjectById(favorite.project_id ?? "");
|
||||
|
||||
let itemIcon;
|
||||
let itemTitle;
|
||||
const itemLink = generateFavoriteItemLink(workspaceSlug.toString(), favorite);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue