Skip to content

Commit

Permalink
Update routing-params.md (#5706)
Browse files Browse the repository at this point in the history
There were errors in the code portion at the end of Chapter 2 -> Routing params when ArticleCell is last modified.
  • Loading branch information
Masvoras committed Jun 15, 2022
1 parent 90592e3 commit b7636b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ Last but not least we can update the `ArticleCell` to properly display our blog
import Article from 'src/components/Article'

export const QUERY = gql`
query ArticleQuery {
query ArticleQuery($id: Int!) {
article: post(id: $id) {
id
title
Expand All @@ -749,7 +749,7 @@ export const Failure = ({ error }) => (
<div style={{ color: 'red' }}>Error: {error.message}</div>
)

export const Success = ({ articles }) => (
export const Success = ({ article }) => (
// highlight-next-line
<Article article={article} />
)
Expand Down

0 comments on commit b7636b1

Please sign in to comment.