From 9f07c37face21e36e59b28093d2e313dcad55b3c Mon Sep 17 00:00:00 2001 From: Juan Cabanas Date: Thu, 25 Apr 2024 15:38:12 -0300 Subject: [PATCH] ShareModal: Fix share link tracking (#86940) --- public/app/features/dashboard-scene/sharing/ShareLinkTab.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard-scene/sharing/ShareLinkTab.tsx b/public/app/features/dashboard-scene/sharing/ShareLinkTab.tsx index 1f7bd26eacb..cf2e28c8299 100644 --- a/public/app/features/dashboard-scene/sharing/ShareLinkTab.tsx +++ b/public/app/features/dashboard-scene/sharing/ShareLinkTab.tsx @@ -126,13 +126,13 @@ export class ShareLinkTab extends SceneObjectBase { return this.state.shareUrl; }; - onCopy() { + onCopy = () => { DashboardInteractions.shareLinkCopied({ currentTimeRange: this.state.useLockedTime, theme: this.state.selectedTheme, shortenURL: this.state.useShortUrl, }); - } + }; } function ShareLinkTabRenderer({ model }: SceneComponentProps) {