Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix: resolve issue with embedding model field visibility toggling on datasets page (#5451)

gongzhongqiang54b8d98cdefc
diff --git a/web/app/components/datasets/settings/form/index.tsx b/web/app/components/datasets/settings/form/index.tsx
index 64911e901cb..d69ff1b25ab 100644
--- a/web/app/components/datasets/settings/form/index.tsx
+++ b/web/app/components/datasets/settings/form/index.tsx
@@ -194,7 +194,7 @@ const Form = () => {
</div>
</>
)}
- {currentDataset && currentDataset.indexing_technique === 'high_quality' && (
+ {indexMethod === 'high_quality' && (
<div className={rowClass}>
<div className={labelClass}>
<div>{t('datasetSettings.form.embeddingModel')}</div>