Snapshots: Remove dashboard links from snapshots (#35567) (#35586)

(cherry picked from commit 4907d09ffe)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
Grot (@grafanabot)
2021-06-12 08:11:02 +02:00
committed by GitHub
co-authored by Torkel Ödegaard
parent a156582fc4
commit 982dfe21f5
@@ -118,6 +118,9 @@ export class ShareSnapshot extends PureComponent<Props, State> {
// make relative times absolute
dash.time = getTimeSrv().timeRange();
// Remove links
dash.links = [];
// remove panel queries & links
dash.panels.forEach((panel) => {
panel.targets = [];