This commit is contained in:
Stephen Zhou 2026-01-12 18:03:50 +08:00
parent d540b14959
commit 58d9d2f38c
No known key found for this signature in database
2 changed files with 3 additions and 7 deletions

View File

@ -237,7 +237,7 @@ describe('RetrievalSection', () => {
retrievalConfig={retrievalConfig}
showMultiModalTip
onRetrievalConfigChange={vi.fn()}
docLink={docLink}
docLink={docLink as any}
/>,
)
@ -263,7 +263,7 @@ describe('RetrievalSection', () => {
retrievalConfig={createRetrievalConfig()}
showMultiModalTip={false}
onRetrievalConfigChange={handleRetrievalChange}
docLink={path => path}
docLink={path => path || ''}
/>,
)
const [topKIncrement] = screen.getAllByLabelText('increment')

View File

@ -26,11 +26,7 @@ export const useAvailableNodesMetaData = () => {
], [])
const helpLinkUri = useMemo(() => docLink(
'/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration#step-1%3A-data-source',
{
'zh-Hans': '/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration#%E6%AD%A5%E9%AA%A4%E4%B8%80%EF%BC%9A%E6%95%B0%E6%8D%AE%E6%BA%90%E9%85%8D%E7%BD%AE',
'ja-JP': '/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration#%E3%82%B9%E3%83%86%E3%83%83%E3%83%971%EF%BC%9A%E3%83%87%E3%83%BC%E3%82%BF%E3%82%BD%E3%83%BC%E3%82%B9%E3%81%AE%E8%A8%AD%E5%AE%9A',
},
'/use-dify/getting-started/introduction',
), [docLink])
const availableNodesMetaData = useMemo(() => mergedNodesMetaData.map((node) => {