fix(client): add key to Fragment in SuperBlockIntro (#41091)
This commit is contained in:
@ -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>
|
||||||
|
Reference in New Issue
Block a user