Skip to content

Commit

Permalink
fix: workflow start node form optional value (#10529)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhlyh authored Nov 11, 2024
1 parent f414d24 commit 508f848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/app/components/base/chat/chat-with-history/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/base/chat/embedded-chatbot/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 508f848

Please sign in to comment.