Skip to content
Snippets Groups Projects
Unverified Commit 7312f3b5 authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

preserve url params when saving data app pages (#25874)

* preserve params when saving the dashboard, essential for data apps details

* keep existing behavior for normal dashboards, keep params for pages
parent e6ed6a1f
No related branches found
No related tags found
No related merge requests found
......@@ -159,8 +159,12 @@ export const saveDashboardAndCards = createThunkAction(
await dispatch(Dashboards.actions.update(dashboard));
// make sure that we've fully cleared out any dirty state from editing (this is overkill, but simple)
dispatch(fetchDashboard(dashboard.id, null)); // disable using query parameters when saving
if (dashboard.is_app_page) {
dispatch(fetchDashboard(dashboard.id, window.location.search, true));
} else {
// make sure that we've fully cleared out any dirty state from editing (this is overkill, but simple)
dispatch(fetchDashboard(dashboard.id, null)); // disable using query parameters when saving
}
};
},
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment