fix(client): landing page superblocks (#38914)
parent
7fd92c5fe6
commit
18d2dca05b
|
@ -40,7 +40,7 @@ const AsFeaturedSection = () => (
|
|||
|
||||
export const Landing = ({ edges }) => {
|
||||
const superBlocks = uniq(edges.map(element => element.node.superBlock));
|
||||
const interviewPrep = superBlocks.splice(10, 1);
|
||||
const interviewPrep = superBlocks.splice(-1);
|
||||
return (
|
||||
<Fragment>
|
||||
<Helmet>
|
||||
|
|
|
@ -25,8 +25,11 @@ IndexPage.displayName = 'IndexPage';
|
|||
export default IndexPage;
|
||||
|
||||
export const query = graphql`
|
||||
query challNodes {
|
||||
allChallengeNode(sort: { fields: [superOrder, order, challengeOrder] }) {
|
||||
query MyQuery {
|
||||
allChallengeNode(
|
||||
filter: { isHidden: { eq: false } }
|
||||
sort: { fields: [superOrder, order, challengeOrder] }
|
||||
) {
|
||||
edges {
|
||||
node {
|
||||
fields {
|
||||
|
|
Loading…
Reference in New Issue