mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
refactor(plugin-sql-editor): CB-1060 remove unnecessary context usage
This commit is contained in:
-5
@@ -44,11 +44,6 @@ interface Props {
|
||||
|
||||
export const ExecutionPlanTreeBlock: React.FC<Props> = 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)(
|
||||
<Split className={className} sticky={30} split='horizontal' keepRatio>
|
||||
|
||||
Reference in New Issue
Block a user