Skip to content

Commit d3853c0

Browse files
committed
no childsharpimage for learn-chapter.js
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 07f796a commit d3853c0

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

src/templates/learn-chapter.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ export const query = graphql`
3434
imagepath {
3535
extension
3636
publicURL
37-
childImageSharp {
38-
gatsbyImageData(width: 50, layout: CONSTRAINED)
39-
}
4037
}
4138
name
4239
}
@@ -62,15 +59,7 @@ export const query = graphql`
6259
}
6360
}
6461
65-
serviceMeshesList: allMdx(
66-
filter: {fields: {course: {eq: $course}, pageType: {eq: "chapter"}}}
67-
){
68-
nodes {
69-
fields {
70-
section
71-
}
72-
}
73-
}
62+
7463
}
7564
`;
7665

@@ -89,7 +78,7 @@ const SingleChapter = ({ data, location, children }) => {
8978

9079

9180
<SimpleReactLightbox>
92-
<Chapters chapterData={data.chapter} TOCData={sortedTOCData} courseData={data.course.nodes[0]} location={location} serviceMeshesList={data.serviceMeshesList.nodes} >
81+
<Chapters chapterData={data.chapter} TOCData={sortedTOCData} courseData={data.course.nodes[0]} location={location} serviceMeshesList={data.TOC.nodes} >
9382
{children}
9483
</Chapters>
9584
</SimpleReactLightbox>

0 commit comments

Comments
 (0)