From 6af35a7d982e823e95cf85e35ab1a1f7870714ff Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Fri, 30 Sep 2022 08:07:01 -0300 Subject: [PATCH] fix: Selected tab after save and go to dashboard (#21630) --- superset-frontend/src/dashboard/actions/hydrate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/dashboard/actions/hydrate.js b/superset-frontend/src/dashboard/actions/hydrate.js index 221d8507d4..4422165a0a 100644 --- a/superset-frontend/src/dashboard/actions/hydrate.js +++ b/superset-frontend/src/dashboard/actions/hydrate.js @@ -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);