Skip to content

Commit c7c0489

Browse files
fix(SchemaTree): remove unneeded fetches
1 parent 2f39ad0 commit c7c0489

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import {useDispatch} from 'react-redux';
33

44
import {NavigationTree} from 'ydb-ui-components';
55

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

109
import {mapPathTypeToNavigationTreeType} from '../../utils/schema';
@@ -54,8 +53,6 @@ export function SchemaTree(props: SchemaTreeProps) {
5453

5554
const handleActivePathUpdate = (activePath: string) => {
5655
dispatch(setCurrentSchemaPath(activePath));
57-
dispatch(getSchema({path: activePath}));
58-
dispatch(getSchemaAcl({path: activePath}));
5956
};
6057

6158
useEffect(() => {

0 commit comments

Comments
 (0)