Skip to content

Commit 508f848

Browse files
authored
fix: workflow start node form optional value (langgenius#10529)
1 parent f414d24 commit 508f848

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/app/components/base/chat/chat-with-history/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {
173173
const conversationInputs: Record<string, any> = {}
174174

175175
inputsForms.forEach((item: any) => {
176-
conversationInputs[item.variable] = item.default || ''
176+
conversationInputs[item.variable] = item.default || null
177177
})
178178
handleNewConversationInputsChange(conversationInputs)
179179
}, [handleNewConversationInputsChange, inputsForms])

web/app/components/base/chat/embedded-chatbot/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const useEmbeddedChatbot = () => {
159159
const conversationInputs: Record<string, any> = {}
160160

161161
inputsForms.forEach((item: any) => {
162-
conversationInputs[item.variable] = item.default || ''
162+
conversationInputs[item.variable] = item.default || null
163163
})
164164
handleNewConversationInputsChange(conversationInputs)
165165
}, [handleNewConversationInputsChange, inputsForms])

0 commit comments

Comments
 (0)