Skip to content

Commit 0444319

Browse files
moonmeisterahuseyn
andauthored
Update examples/next/template-hierarchy/example-app/src/wp-templates/single.js
Co-authored-by: Huseyn Aghayev <huseyn.aghayev@wpengine.com>
1 parent ff14b91 commit 0444319

File tree

1 file changed

+2
-2
lines changed
  • examples/next/template-hierarchy/example-app/src/wp-templates

1 file changed

+2
-2
lines changed

examples/next/template-hierarchy/example-app/src/wp-templates/single.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ export default function SingleTemplate({ graphqlData }) {
44
const { SinglePostQuery } = graphqlData;
55
return (
66
<Layout>
7-
<h2>{SinglePostQuery.response.data.post.title}</h2>
7+
<h2>{SinglePostQuery.data.post.title}</h2>
88
<div
99
dangerouslySetInnerHTML={{
10-
__html: SinglePostQuery.response.data.post.content,
10+
__html: SinglePostQuery.data.post.content,
1111
}}
1212
/>
1313
</Layout>

0 commit comments

Comments
 (0)