Przeglądaj źródła

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

tags/0.11.1
zxhlyh 11 miesięcy temu
rodzic
commit
508f84893f
No account linked to committer's email address

+ 1
- 1
web/app/components/base/chat/chat-with-history/hooks.tsx Wyświetl plik

@@ -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 Wyświetl plik

@@ -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])

Ładowanie…
Anuluj
Zapisz