fix(client): landing page superblocks (#38914)

pull/38935/head
Kristofer Koishigawa 2020-05-28 17:50:51 +09:00 committed by GitHub
parent 7fd92c5fe6
commit 18d2dca05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -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>

View File

@ -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 {