mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-30 10:05:15 +08:00
fix: change provider should change the content (#19075)
This commit is contained in:
parent
23f6914b9b
commit
ce9737c6a0
@ -17,6 +17,7 @@ type Props = {
|
|||||||
|
|
||||||
const NoData: FC<Props> = ({
|
const NoData: FC<Props> = ({
|
||||||
onConfig,
|
onConfig,
|
||||||
|
provider,
|
||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ const NoData: FC<Props> = ({
|
|||||||
} : null,
|
} : null,
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentProvider = Object.values(providerConfig).find(provider => provider !== null) || providerConfig[DataSourceProvider.jinaReader]
|
const currentProvider = providerConfig[provider] || providerConfig[DataSourceProvider.jinaReader]
|
||||||
|
|
||||||
if (!currentProvider) return null
|
if (!currentProvider) return null
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user