From fbee8ee91ab33a7e28eb8a4e10e8208eb7929cb0 Mon Sep 17 00:00:00 2001 From: Naumov Alexey Date: Thu, 24 Jun 2021 18:02:21 +0300 Subject: [PATCH] refactor(plugin-sql-editor): CB-1060 remove unnecessary context usage --- .../SqlResultTabs/ExecutionPlan/ExecutionPlanTreeBlock.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/ExecutionPlanTreeBlock.tsx b/webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/ExecutionPlanTreeBlock.tsx index 066cbb7baf..b8d910864b 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/ExecutionPlanTreeBlock.tsx +++ b/webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/ExecutionPlanTreeBlock.tsx @@ -44,11 +44,6 @@ interface Props { export const ExecutionPlanTreeBlock: React.FC = function ExecutionPlanTreeBlock({ className, query }) { const style = useStyles(styles, splitStyles); - const treeContext = useContext(ExecutionPlanTreeContext); - - if (!treeContext) { - throw new Error('Tree context must be provided'); - } return styled(style)(