瀏覽代碼

fix: workflow start node form optional value (#10529)

tags/0.11.1
zxhlyh 11 月之前
父節點
當前提交
508f84893f
沒有連結到貢獻者的電子郵件帳戶。

+ 1
- 1
web/app/components/base/chat/chat-with-history/hooks.tsx 查看文件

@@ -173,7 +173,7 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {
const conversationInputs: Record<string, any> = {}

inputsForms.forEach((item: any) => {
conversationInputs[item.variable] = item.default || ''
conversationInputs[item.variable] = item.default || null
})
handleNewConversationInputsChange(conversationInputs)
}, [handleNewConversationInputsChange, inputsForms])

+ 1
- 1
web/app/components/base/chat/embedded-chatbot/hooks.tsx 查看文件

@@ -159,7 +159,7 @@ export const useEmbeddedChatbot = () => {
const conversationInputs: Record<string, any> = {}

inputsForms.forEach((item: any) => {
conversationInputs[item.variable] = item.default || ''
conversationInputs[item.variable] = item.default || null
})
handleNewConversationInputsChange(conversationInputs)
}, [handleNewConversationInputsChange, inputsForms])

Loading…
取消
儲存