Commit 3acc1521 authored by charlie-ablett's avatar charlie-ablett

Resolve propType and React child key warnings

parent 40c123aa
......@@ -58,7 +58,7 @@ export class ExecutionList extends Component {
ExecutionList.propTypes = {
recipe: PropTypes.object,
session: PropTypes.object,
executionPlaceholderCount: PropTypes.integer
executionPlaceholderCount: PropTypes.number.isRequired
};
export default ExecutionList;
......@@ -31,8 +31,8 @@ export class RecipeStepDetail extends Component {
return(
<div>
<div className="step-module-container">
{ array.map(bit => {
return(<span className="step-module">{bit}</span>);
{ array.map((bit, index) => {
return(<span key={index} className="step-module">{bit}</span>);
})}
</div>
<div className="step--blue step__title">{this.stepShorthand(stepName)}</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment