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: can not input param value in tool test modal (#7281)

wellCh4n8f5d8397f9b5
diff --git a/web/app/components/tools/edit-custom-collection-modal/index.tsx b/web/app/components/tools/edit-custom-collection-modal/index.tsx
index 5fcf6fb0248..e84e15da17f 100644
--- a/web/app/components/tools/edit-custom-collection-modal/index.tsx
+++ b/web/app/components/tools/edit-custom-collection-modal/index.tsx
@@ -327,36 +327,36 @@ const EditCustomCollectionModal: FC<Props> = ({
<Button variant='primary' onClick={handleSave}>{t('common.operation.save')}</Button>
</div>
</div>
+ {showEmojiPicker && <EmojiPicker
+ onSelect={(icon, icon_background) => {
+ setEmoji({ content: icon, background: icon_background })
+ setShowEmojiPicker(false)
+ }}
+ onClose={() => {
+ setShowEmojiPicker(false)
+ }}
+ />}
+ {credentialsModalShow && (
+ <ConfigCredentials
+ positionCenter={isAdd}
+ credential={credential}
+ onChange={setCredential}
+ onHide={() => setCredentialsModalShow(false)}
+ />)
+ }
+ {isShowTestApi && (
+ <TestApi
+ positionCenter={isAdd}
+ tool={currTool as CustomParamSchema}
+ customCollection={customCollection}
+ onHide={() => setIsShowTestApi(false)}
+ />
+ )}
</div>
}
isShowMask={true}
clickOutsideNotOpen={true}
/>
- {showEmojiPicker && <EmojiPicker
- onSelect={(icon, icon_background) => {
- setEmoji({ content: icon, background: icon_background })
- setShowEmojiPicker(false)
- }}
- onClose={() => {
- setShowEmojiPicker(false)
- }}
- />}
- {credentialsModalShow && (
- <ConfigCredentials
- positionCenter={isAdd}
- credential={credential}
- onChange={setCredential}
- onHide={() => setCredentialsModalShow(false)}
- />)
- }
- {isShowTestApi && (
- <TestApi
- positionCenter={isAdd}
- tool={currTool as CustomParamSchema}
- customCollection={customCollection}
- onHide={() => setIsShowTestApi(false)}
- />
- )}
</>
)