From 19628e64a343d1663253c57f882e3235e5f6f1a4 Mon Sep 17 00:00:00 2001 From: Nut He <18328704+hetao92@users.noreply.github.com> Date: Thu, 21 Sep 2023 16:38:34 +0800 Subject: [PATCH] fix: fix module config match (#649) --- app/pages/Import/TaskCreate/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/pages/Import/TaskCreate/index.tsx b/app/pages/Import/TaskCreate/index.tsx index c0ccb4ba..8863d229 100644 --- a/app/pages/Import/TaskCreate/index.tsx +++ b/app/pages/Import/TaskCreate/index.tsx @@ -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: { @@ -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; @@ -79,7 +80,7 @@ const TaskCreate = () => { const { state } = location; initTaskDir(); getSpaces(); - getFiles(); + supportDatasourceType.includes(IDatasourceType.Local) && getFiles(); if (state) { setShowMoreConfig(true); updateSpaceInfo(state.space);