From e6cad0f415c349858a7726f4ef6f1648e5c6c94d Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 27 May 2021 16:26:44 -0400 Subject: [PATCH] fixes toggleDownloadForExcel function (#34685) (#34852) (cherry picked from commit f05bddae43241c358c9414f008ccdc6fe32f93f0) Co-authored-by: Matt Abrams <37156449+zuchka@users.noreply.github.com> --- public/app/features/inspector/InspectDataTab.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/inspector/InspectDataTab.tsx b/public/app/features/inspector/InspectDataTab.tsx index 01efe6966c1..e3bb8328fe8 100644 --- a/public/app/features/inspector/InspectDataTab.tsx +++ b/public/app/features/inspector/InspectDataTab.tsx @@ -131,11 +131,11 @@ export class InspectDataTab extends PureComponent { }); }; - toggleDownloadForExcel() { + toggleDownloadForExcel = () => { this.setState((prevState) => ({ downloadForExcel: !prevState.downloadForExcel, })); - } + }; getProcessedData(): DataFrame[] { const { options, panel } = this.props;