Skip to content

Commit 1146f13

Browse files
fix(SchemaTree): remove unneeded getDescribe
1 parent 348f2d2 commit 1146f13

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/containers/Tenant/Schema/SchemaTree/SchemaTree.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {useDispatch} from 'react-redux';
44
import {NavigationTree} from 'ydb-ui-components';
55

66
import {setCurrentSchemaPath, getSchema, preloadSchemas} from '../../../../store/reducers/schema';
7-
import {getDescribe} from '../../../../store/reducers/describe';
87
import {getSchemaAcl} from '../../../../store/reducers/schemaAcl';
98
import type {EPathType, TEvDescribeSchemeResult} from '../../../../types/api/schema';
109

@@ -30,7 +29,7 @@ export function SchemaTree(props: SchemaTreeProps) {
3029
const {PathDescription: {Children = []} = {}} = data;
3130

3231
const preloadedData: Record<string, TEvDescribeSchemeResult> = {
33-
[path]: data
32+
[path]: data,
3433
};
3534

3635
const childItems = Children.map((childData) => {
@@ -56,7 +55,6 @@ export function SchemaTree(props: SchemaTreeProps) {
5655
const handleActivePathUpdate = (activePath: string) => {
5756
dispatch(setCurrentSchemaPath(activePath));
5857
dispatch(getSchema({path: activePath}));
59-
dispatch(getDescribe({path: activePath}));
6058
dispatch(getSchemaAcl({path: activePath}));
6159
};
6260

0 commit comments

Comments
 (0)