mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(Dashboard): Exclude edit param in async screenshot (#30962)
This commit is contained in:
@@ -156,7 +156,7 @@ export default function DownloadScreenshot({
|
||||
anchor,
|
||||
activeTabs,
|
||||
dataMask,
|
||||
urlParams: getDashboardUrlParams(),
|
||||
urlParams: getDashboardUrlParams(['edit']),
|
||||
},
|
||||
})
|
||||
.then(({ json }) => {
|
||||
|
||||
@@ -123,8 +123,13 @@ function getChartUrlParams(excludedUrlParams?: string[]): UrlParamEntries {
|
||||
return getUrlParamEntries(urlParams);
|
||||
}
|
||||
|
||||
export function getDashboardUrlParams(): UrlParamEntries {
|
||||
const urlParams = getUrlParams(RESERVED_DASHBOARD_URL_PARAMS);
|
||||
export function getDashboardUrlParams(
|
||||
extraExcludedParams: string[] = [],
|
||||
): UrlParamEntries {
|
||||
const urlParams = getUrlParams([
|
||||
...RESERVED_DASHBOARD_URL_PARAMS,
|
||||
...extraExcludedParams,
|
||||
]);
|
||||
const filterBoxFilters = getActiveFilters();
|
||||
if (!isEmpty(filterBoxFilters))
|
||||
urlParams.append(
|
||||
|
||||
Reference in New Issue
Block a user