feat: display name instead of key in user fillup form submission
Change the message format from 'key: value' to 'name: value' when user submits the fillup form in agent chat.
This commit is contained in:
parent
6560388f2b
commit
81cf98467a
1 changed files with 1 additions and 1 deletions
|
|
@ -327,7 +327,7 @@ export const useSendAgentMessage = ({
|
||||||
async (body: { id?: string; inputs: Record<string, BeginQuery> }) => {
|
async (body: { id?: string; inputs: Record<string, BeginQuery> }) => {
|
||||||
addNewestOneQuestion({
|
addNewestOneQuestion({
|
||||||
content: Object.entries(body.inputs)
|
content: Object.entries(body.inputs)
|
||||||
.map(([key, val]) => `${key}: ${val.value}`)
|
.map(([, val]) => `${val.name}: ${val.value}`)
|
||||||
.join('<br/>'),
|
.join('<br/>'),
|
||||||
role: MessageType.User,
|
role: MessageType.User,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue