fix(client): add key to Fragment in SuperBlockIntro (#41091)

This commit is contained in:
Shaun Hamilton
2021-02-13 05:05:07 +00:00
committed by GitHub
parent b2526c855a
commit 73f8377d68

View File

@ -1,4 +1,4 @@
import React, { Component } from 'react'; import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { graphql } from 'gatsby'; import { graphql } from 'gatsby';
@ -165,7 +165,7 @@ export class SuperBlockIntroductionPage extends Component {
<Spacer /> <Spacer />
<div className='block-ui'> <div className='block-ui'>
{blockDashedNames.map(blockDashedName => ( {blockDashedNames.map(blockDashedName => (
<> <Fragment key={blockDashedName}>
<Block <Block
blockDashedName={blockDashedName} blockDashedName={blockDashedName}
challenges={nodesForSuperBlock.filter( challenges={nodesForSuperBlock.filter(
@ -174,7 +174,7 @@ export class SuperBlockIntroductionPage extends Component {
superBlockDashedName={superBlockDashedName} superBlockDashedName={superBlockDashedName}
/> />
{blockDashedName !== 'project-euler' ? <Spacer /> : null} {blockDashedName !== 'project-euler' ? <Spacer /> : null}
</> </Fragment>
))} ))}
{superBlock !== 'Coding Interview Prep' && ( {superBlock !== 'Coding Interview Prep' && (
<div> <div>