From abc1ad4ff9b181e73fcd9a22d61e08b71a1e1f18 Mon Sep 17 00:00:00 2001 From: Christine Chambers Date: Mon, 8 Apr 2019 11:45:12 -0700 Subject: [PATCH] chore: rename willUnmount hook to match the name in `superset-ui/chart` (#43) --- .../superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js index 4bd86803ab90b..b05cb52c5c26e 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js @@ -20,8 +20,8 @@ import { reactify } from '@superset-ui/chart'; import Component from './NVD3Vis'; import { hideTooltips } from './utils'; -function willUnmount() { +function componentWillUnmount() { hideTooltips(true); } -export default reactify(Component, { willUnmount }); +export default reactify(Component, { componentWillUnmount });