소스 검색

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

tags/0.11.1
zxhlyh 11 달 전
부모
커밋
508f84893f
No account linked to committer's email address
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      web/app/components/base/chat/chat-with-history/hooks.tsx
  2. 1
    1
      web/app/components/base/chat/embedded-chatbot/hooks.tsx

+ 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…
취소
저장