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) {