You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To render the left navigation bar in a Collections page accurately, we need to know the titles of all the pages in the collection. Right now, this is done by passing a prop pages into the link in CollectionPages like so:
However, if EditCollectionPage is accessed by its URL and not by the link, then the pages prop is not passed and { pages } becomes undefined in EditCollectionPage.
This should be fixed by calling the Github API directly in EditCollectionPage rather than passing a prop accessible only when the link is used.
The text was updated successfully, but these errors were encountered:
To render the left navigation bar in a Collections page accurately, we need to know the titles of all the pages in the collection. Right now, this is done by passing a prop
pages
into the link inCollectionPages
like so:And it is subsequently accessed in
EditCollectionPage
:However, if
EditCollectionPage
is accessed by its URL and not by the link, then thepages
prop is not passed and{ pages }
becomes undefined inEditCollectionPage
.This should be fixed by calling the Github API directly in
EditCollectionPage
rather than passing a prop accessible only when the link is used.The text was updated successfully, but these errors were encountered: