Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
fix: bug 2404 action scorer not showing memory values (#1402)
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsLiden authored Dec 5, 2019
1 parent 022ecf8 commit 2d67253
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/ActionRenderers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function actionTypeRenderer(action: CLM.ActionBase | undefined): JSX.Elem
export function actionListViewRenderer(
action: CLM.ActionBase,
entities: CLM.EntityBase[],
memories: CLM.Memory[],
callbacks: CLM.Callback[],
onClickViewCard: (action: CLM.ActionBase, cardViewerShowOriginal: boolean) => void
): React.ReactNode {
Expand All @@ -43,6 +44,7 @@ export function actionListViewRenderer(
<ActionPayloadRenderers.TextPayloadRendererWithHighlights
textAction={textAction}
entities={entities}
memories={memories}
showMissingEntities={true}
/>)
}
Expand All @@ -53,6 +55,7 @@ export function actionListViewRenderer(
<ActionPayloadRenderers.ApiPayloadRendererWithHighlights
apiAction={apiAction}
entities={entities}
memories={memories}
callback={callback}
showMissingEntities={true}
/>)
Expand All @@ -64,6 +67,7 @@ export function actionListViewRenderer(
isValidationError={false}
cardAction={cardAction}
entities={entities}
memories={memories}
onClickViewCard={(_, showOriginal) => onClickViewCard(action, showOriginal)}
showMissingEntities={true}
/>)
Expand All @@ -74,6 +78,7 @@ export function actionListViewRenderer(
<ActionPayloadRenderers.SessionPayloadRendererWithHighlights
sessionAction={sessionAction}
entities={entities}
memories={memories}
showMissingEntities={true}
/>)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class RepromptAction extends React.Component<Props, ComponentState> {
const actionRender = (!this.props.selfprompt && this.props.action)
? actionListViewRenderer(this.props.action,
this.props.entities,
[],
this.props.botInfo.callbacks,
this.onClickViewCard)
: undefined
Expand Down
1 change: 1 addition & 0 deletions src/components/modals/ActionScorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function getColumns(intl: InjectedIntl): IRenderableColumn[] {
render: (action: CLM.ActionBase, component) => {
return actionListViewRenderer(action,
component.props.entities,
component.props.memories,
component.props.botInfo.callbacks,
component.onClickViewCard)
}
Expand Down
1 change: 1 addition & 0 deletions src/components/modals/ActionSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function getColumns(intl: InjectedIntl): IRenderableColumn[] {
render: (action: CLM.ActionBase, component) => {
return actionListViewRenderer(action,
component.props.entities,
[],
component.props.botInfo.callbacks,
component.onClickViewCard)
}
Expand Down

0 comments on commit 2d67253

Please sign in to comment.