Skip to content

Commit d81165a

Browse files
committed
fix: checks fix
1 parent 2efd40c commit d81165a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {NavigationTree} from 'ydb-ui-components';
77

88
import {useCreateDirectoryFeatureAvailable} from '../../../../store/reducers/capabilities/hooks';
99
import {schemaApi} from '../../../../store/reducers/schema/schema';
10+
import {tableSchemaDataApi} from '../../../../store/reducers/tableSchemaData';
1011
import type {GetTableSchemaDataParams} from '../../../../store/reducers/tableSchemaData';
11-
import {useGetTableSchemaDataMutation} from '../../../../store/reducers/tableSchemaData';
1212
import type {EPathType, TEvDescribeSchemeResult} from '../../../../types/api/schema';
1313
import {wait} from '../../../../utils';
1414
import {SECOND_IN_MS} from '../../../../utils/constants';
@@ -32,7 +32,7 @@ export function SchemaTree(props: SchemaTreeProps) {
3232
const createDirectoryFeatureAvailable = useCreateDirectoryFeatureAvailable();
3333
const {rootPath, rootName, rootType, currentPath, onActivePathUpdate} = props;
3434
const dispatch = useTypedDispatch();
35-
const [getTableSchemaDataMutation] = useGetTableSchemaDataMutation();
35+
const [getTableSchemaDataMutation] = tableSchemaDataApi.useGetTableSchemaDataMutation();
3636

3737
const getTableSchemaDataPromise = React.useCallback(
3838
async (args: GetTableSchemaDataParams) => {

src/store/reducers/tableSchemaData.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface GetTableSchemaDataParams {
1717
type: EPathType;
1818
}
1919

20-
export const tableSchemeDataApi = api.injectEndpoints({
20+
export const tableSchemaDataApi = api.injectEndpoints({
2121
endpoints: (build) => ({
2222
getTableSchemaData: build.mutation<SchemaData[], GetTableSchemaDataParams>({
2323
queryFn: async ({path, tenantName, type}, {dispatch}) => {
@@ -54,5 +54,3 @@ export const tableSchemeDataApi = api.injectEndpoints({
5454
}),
5555
}),
5656
});
57-
58-
export const {useGetTableSchemaDataMutation} = tableSchemeDataApi;

0 commit comments

Comments
 (0)