Skip to content

Commit

Permalink
fix: fix module config match (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 authored Sep 21, 2023
1 parent ade1cf6 commit 19628e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/pages/Import/TaskCreate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { ImportStore } from '@app/stores/import';
import styles from './index.module.less';
import ConfigConfirmModal from './ConfigConfirmModal';
import SchemaConfig from './SchemaConfig';
import { IDatasourceType } from '@app/interfaces/datasource';
const Option = Select.Option;
const formItemLayout = {
wrapperCol: {
Expand Down Expand Up @@ -51,7 +52,7 @@ const TaskCreate = () => {
updateTaskDraft,
setDraft,
} = dataImport;
const { needPwdConfirm, disableConfigMore } = moduleConfiguration.dataImport;
const { needPwdConfirm, disableConfigMore, supportDatasourceType } = moduleConfiguration.dataImport;
const { spaces, getSpaces, updateSpaceInfo, currentSpace, spaceVidType } = schema;
const { getGraphAddress, _host } = global;
const { getFiles } = files;
Expand Down Expand Up @@ -79,7 +80,7 @@ const TaskCreate = () => {
const { state } = location;
initTaskDir();
getSpaces();
getFiles();
supportDatasourceType.includes(IDatasourceType.Local) && getFiles();
if (state) {
setShowMoreConfig(true);
updateSpaceInfo(state.space);
Expand Down

0 comments on commit 19628e6

Please sign in to comment.