Skip to content

Commit d33a915

Browse files
authored
fixed the difference from Quick start (#1658)
restaurant.attributes.name -> restaurant.attributes.Name
1 parent e2db733 commit d33a915

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docusaurus/docs/dev-docs/integrations/next-js.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const Home = ({ restaurants, error }) => {
151151
return (
152152
<ul>
153153
{restaurants.data.map(restaurant => (
154-
<li key={restaurant.id}>{restaurant.attributes.name}</li>
154+
<li key={restaurant.id}>{restaurant.attributes.Name}</li>
155155
))}
156156
</ul>
157157
);
@@ -184,7 +184,7 @@ const Home = ({ restaurants, error }) => {
184184
return (
185185
<ul>
186186
{restaurants.data.map(restaurant => (
187-
<li key={restaurant.id}>{restaurant.attributes.name}</li>
187+
<li key={restaurant.id}>{restaurant.attributes.Name}</li>
188188
))}
189189
</ul>
190190
);
@@ -378,7 +378,7 @@ const Home = ({ allCategories, errorCategories }) => {
378378
};
379379
return (
380380
<div key={category.id}>
381-
<label htmlFor={category.id}>{category.attributes.name}</label>
381+
<label htmlFor={category.id}>{category.attributes.Name}</label>
382382
<input
383383
type="checkbox"
384384
checked={isChecked}
@@ -508,7 +508,7 @@ const Home = ({ allCategories, errorCategories }) => {
508508
};
509509
return (
510510
<div key={category.id}>
511-
<label htmlFor={category.id}>{category.attributes.name}</label>
511+
<label htmlFor={category.id}>{category.attributes.Name}</label>
512512
<input
513513
type="checkbox"
514514
checked={isChecked}

0 commit comments

Comments
 (0)