Commit f621bfb8 by zhaochengxiang

bug fix

parent ce1c8ec1
......@@ -1141,6 +1141,7 @@ export const ImportActionTable = (props) => {
{...suggestParams}
catalogId={catalogId}
modelerData={modelerData}
type={type}
onCancel={() => {
setSuggestParams({
visible: false,
......
......@@ -10,7 +10,7 @@ import { useDebounceEffect } from 'ahooks'
const topN = 20
const FC = (props) => {
const { visible, name, cnName, onCancel, onOk, triggerType = 'cnName', catalogId, modelerData } = props
const { visible, name, cnName, onCancel, onOk, triggerType = 'cnName', catalogId, modelerData, type } = props
const [loadingPreference, setLoadingPreference] = React.useState(false)
const [preference, setPreference] = React.useState()
const [loading, setLoading] = React.useState(false)
......@@ -164,6 +164,13 @@ const FC = (props) => {
}
const getSuggestionPreference = () => {
if (type !== 'model') {
setPreference({
expectedDBType: null
})
return
}
if (modelerData?.dataResidence) {
setPreference({
expectedDBType: modelerData?.dataResidence
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment