use action.text for input actions in workflow timeline, instead of action.response (#3709)
This commit is contained in:
@@ -394,6 +394,7 @@ export type ActionsApiResponse = {
|
|||||||
intention: string | null;
|
intention: string | null;
|
||||||
response: string | null;
|
response: string | null;
|
||||||
created_by: string | null;
|
created_by: string | null;
|
||||||
|
text: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TaskV2 = {
|
export type TaskV2 = {
|
||||||
|
|||||||
@@ -87,7 +87,10 @@ function ActionCard({ action, onClick, active, index }: Props) {
|
|||||||
<>
|
<>
|
||||||
<Separator />
|
<Separator />
|
||||||
<div className="text-xs text-slate-400">
|
<div className="text-xs text-slate-400">
|
||||||
Input: {action.response}
|
Input:{" "}
|
||||||
|
{action.action_type === "input_text"
|
||||||
|
? action.text ?? action.response
|
||||||
|
: action.response}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user