refactor(client): simply landing query (#38935)

This commit is contained in:
Oliver Eyton-Williams
2020-05-28 17:26:48 +02:00
committed by GitHub
parent fcef62d5de
commit a9acf11209
2 changed files with 7 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ import './landing.css';
import '../Map/map.css';
const propTypes = {
edges: PropTypes.array
nodes: PropTypes.array
};
const BigCallToAction = () => (
@@ -38,8 +38,8 @@ const AsFeaturedSection = () => (
</Row>
);
export const Landing = ({ edges }) => {
const superBlocks = uniq(edges.map(element => element.node.superBlock));
export const Landing = ({ nodes }) => {
const superBlocks = uniq(nodes.map(node => node.superBlock));
const interviewPrep = superBlocks.splice(-1);
return (
<Fragment>