refactor(formModal): rename 'template' prop to 'prompt' for better clarity and consistency
fix(formModal): update 'template' prop value to use the correct value from tabsState for each chatItem
This commit is contained in:
parent
89880b14a0
commit
746f2b6799
1 changed files with 3 additions and 3 deletions
|
|
@ -214,7 +214,7 @@ export default function FormModal({
|
|||
intermediate_steps?: string;
|
||||
is_bot: boolean;
|
||||
message: string;
|
||||
template: string;
|
||||
prompt?: string;
|
||||
type: string;
|
||||
chatKey: string;
|
||||
files?: Array<any>;
|
||||
|
|
@ -225,7 +225,7 @@ export default function FormModal({
|
|||
? {
|
||||
isSend: !chatItem.is_bot,
|
||||
message: chatItem.message,
|
||||
template: chatItem.template,
|
||||
template: tabsState[flow.id].formKeysData.template,
|
||||
thought: chatItem.intermediate_steps,
|
||||
files: chatItem.files,
|
||||
chatKey: chatItem.chatKey,
|
||||
|
|
@ -233,7 +233,7 @@ export default function FormModal({
|
|||
: {
|
||||
isSend: !chatItem.is_bot,
|
||||
message: chatItem.message,
|
||||
template: chatItem.template,
|
||||
template: tabsState[flow.id].formKeysData.template,
|
||||
thought: chatItem.intermediate_steps,
|
||||
chatKey: chatItem.chatKey,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue