mirror of https://github.com/apache/superset.git
fix(explore): chart link is broken without localStorage (#21707)
This commit is contained in:
parent
200bed6f7e
commit
35d9cb38a8
|
@ -101,7 +101,7 @@ const getDashboardContextFormData = () => {
|
|||
Object.assign(dashboardContextWithFilters, { dashboardId });
|
||||
return dashboardContextWithFilters;
|
||||
}
|
||||
return {};
|
||||
return null;
|
||||
};
|
||||
|
||||
export default function ExplorePage() {
|
||||
|
@ -117,10 +117,12 @@ export default function ExplorePage() {
|
|||
if (!isExploreInitialized.current || isSaveAction) {
|
||||
fetchExploreData(exploreUrlParams)
|
||||
.then(({ result }) => {
|
||||
const formData = getFormDataWithDashboardContext(
|
||||
result.form_data,
|
||||
dashboardContextFormData,
|
||||
);
|
||||
const formData = dashboardContextFormData
|
||||
? getFormDataWithDashboardContext(
|
||||
result.form_data,
|
||||
dashboardContextFormData,
|
||||
)
|
||||
: result.form_data;
|
||||
dispatch(
|
||||
hydrateExplore({
|
||||
...result,
|
||||
|
|
Loading…
Reference in New Issue