From c6a9848a17b7ac27f43a58c6cecacf905fab0cbc Mon Sep 17 00:00:00 2001 From: Harrison Shoff Date: Wed, 31 Jan 2018 19:59:41 -0800 Subject: [PATCH] Add key to stylesheet links in Head.js (#425) * Add key to config.stylesheets.map in Head.js * Run prettier on Head.js --- lib/core/Head.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/core/Head.js b/lib/core/Head.js index be65e59e70..93259a4d7f 100644 --- a/lib/core/Head.js +++ b/lib/core/Head.js @@ -85,8 +85,10 @@ class Head extends React.Component { {/* External resources */} {this.props.config.stylesheets && - this.props.config.stylesheets.map(function(source) { - return ; + this.props.config.stylesheets.map(function(source, idx) { + return ( + + ); })} {this.props.config.scripts && this.props.config.scripts.map(function(source, idx) {