Skip to content

Commit 38bd27a

Browse files
committed
fix: schema tree
1 parent 73616ba commit 38bd27a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.tsx

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

88
import {getConnectToDBDialog} from '../../../../components/ConnectToDB/ConnectToDBDialog';
99
import {useCreateDirectoryFeatureAvailable} from '../../../../store/reducers/capabilities/hooks';
10-
import {selectUserInput} from '../../../../store/reducers/query/query';
10+
import {selectIsDirty, selectUserInput} from '../../../../store/reducers/query/query';
1111
import {schemaApi} from '../../../../store/reducers/schema/schema';
1212
import {tableSchemaDataApi} from '../../../../store/reducers/tableSchemaData';
1313
import type {EPathType, TEvDescribeSchemeResult} from '../../../../types/api/schema';
@@ -42,6 +42,7 @@ export function SchemaTree(props: SchemaTreeProps) {
4242
const {rootPath, rootName, rootType, currentPath, onActivePathUpdate} = props;
4343
const dispatch = useTypedDispatch();
4444
const input = useTypedSelector(selectUserInput);
45+
const isDirty = useTypedSelector(selectIsDirty);
4546
const [
4647
getTableSchemaDataQuery,
4748
{currentData: actionsSchemaData, isFetching: isActionsDataFetching},
@@ -132,7 +133,7 @@ export function SchemaTree(props: SchemaTreeProps) {
132133
showCreateDirectoryDialog: createDirectoryFeatureAvailable
133134
? handleOpenCreateDirectoryDialog
134135
: undefined,
135-
getConfirmation: input ? getConfirmation : undefined,
136+
getConfirmation: input && isDirty ? getConfirmation : undefined,
136137
getConnectToDBDialog,
137138
schemaData: actionsSchemaData,
138139
isSchemaDataLoading: isActionsDataFetching,

0 commit comments

Comments
 (0)