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