fix(Dashboard): Exclude edit param in async screenshot (#30962)
This commit is contained in:
parent
e528cb48c4
commit
1b63b8f3c7
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue