Skip to content

Commit

Permalink
fix(core/pipeline): Use markdown to render evaluated variables as JSON (
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen authored and mergify[bot] committed Nov 12, 2019
1 parent f93a278 commit e4b432d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
StageExecutionLogs,
StageFailureMessage,
} from 'core/pipeline';
import { Markdown } from '../../../../presentation';

import { IEvaluatedVariable } from './EvaluateVariablesStageConfig';

Expand All @@ -19,11 +20,13 @@ export function EvaluateVariablesExecutionDetails(props: IExecutionDetailsSectio

const evaluatedVariables = context.variables ? (
<div>
<dl className="dl-horizontal">
<dl>
{context.variables.map(({ key }: IEvaluatedVariable) => (
<React.Fragment key={key}>
<dt>{key}</dt>
<dd>{outputs[key]}</dd>
<dd>
<Markdown message={'```\n' + JSON.stringify(outputs[key], null, 2) + '\n```'} />
</dd>
</React.Fragment>
))}
</dl>
Expand Down

0 comments on commit e4b432d

Please sign in to comment.