fix: Selected tab after save and go to dashboard (#21630)

This commit is contained in:
Michael S. Molina
2022-09-30 08:07:01 -03:00
committed by GitHub
parent f83af88fc7
commit 6af35a7d98

View File

@@ -293,7 +293,7 @@ export const hydrateDashboard =
// find direct link component and path from root
const directLinkComponentId = getLocationHash();
let directPathToChild = [];
let directPathToChild = dashboardState.directPathToChild || [];
if (layout[directLinkComponentId]) {
directPathToChild = (layout[directLinkComponentId].parents || []).slice();
directPathToChild.push(directLinkComponentId);