From f56022d5612e72cebdede67a069f21d26f18889e Mon Sep 17 00:00:00 2001 From: Erik Ritter Date: Mon, 5 Aug 2019 08:52:58 -0700 Subject: [PATCH] feat: allow reactify callbacks to access props (#200) --- .../packages/superset-ui-chart/src/components/reactify.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/components/reactify.tsx b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/components/reactify.tsx index 96d7ae19f455d..f01f7205888c4 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/components/reactify.tsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/components/reactify.tsx @@ -53,7 +53,7 @@ export default function reactify( componentWillUnmount() { this.container = undefined; if (callbacks && callbacks.componentWillUnmount) { - callbacks.componentWillUnmount(); + callbacks.componentWillUnmount.bind(this)(); } }