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: no var text still show split line (#239)

Joel408fb502a1b8
diff --git a/web/app/components/share/text-generation/config-scence/index.tsx b/web/app/components/share/text-generation/config-scence/index.tsx
index 5c5681e4a81..d95e0263c15 100644
--- a/web/app/components/share/text-generation/config-scence/index.tsx
+++ b/web/app/components/share/text-generation/config-scence/index.tsx
@@ -60,8 +60,9 @@ const ConfigSence: FC<IConfigSenceProps> = ({
</div>
</div>
))}
-
- <div className='mt-6 h-[1px] bg-gray-100'></div>
+ {promptConfig.prompt_variables.length > 0 && (
+ <div className='mt-6 h-[1px] bg-gray-100'></div>
+ )}
<div className='w-full mt-5'>
<label className='text-gray-900 text-sm font-medium'>{t('share.generation.queryTitle')}</label>
<div className="mt-2 overflow-hidden rounded-lg bg-gray-50 ">