Selaa lähdekoodia

fix: change provider should change the content (#19075)

tags/1.4.0
crazywoola 6 kuukautta sitten
vanhempi
commit
ce9737c6a0
No account linked to committer's email address
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      web/app/components/datasets/create/website/no-data.tsx

+ 2
- 1
web/app/components/datasets/create/website/no-data.tsx Näytä tiedosto

@@ -17,6 +17,7 @@ type Props = {

const NoData: FC<Props> = ({
onConfig,
provider,
}) => {
const { t } = useTranslation()

@@ -38,7 +39,7 @@ const NoData: FC<Props> = ({
} : null,
}

const currentProvider = Object.values(providerConfig).find(provider => provider !== null) || providerConfig[DataSourceProvider.jinaReader]
const currentProvider = providerConfig[provider] || providerConfig[DataSourceProvider.jinaReader]

if (!currentProvider) return null


Loading…
Peruuta
Tallenna