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
Using tags, I add these generated pages to a collection called venue.
For my events pages, I want to reference data in collections.venue, namely finding the venue which has the same id as the one in an event’s frontmatter. I tried doing this using computed data:
This generates an error: Cannot read property 'find' of undefined. If, however, I query a collection that has not been generated using pagination, then I don’t get this error.
Is this a known limitation of computed data?
The text was updated successfully, but these errors were encountered:
paulrobertlloyd
changed the title
Computed data: can’t access collection that’s been generated by pagination
Computed data: can’t access collection data that’s been generated by pagination
Apr 29, 2020
Describe the bug
I have a global data file,
venues.js
, which I use to create pages from using pagination:Using
tags
, I add these generated pages to a collection calledvenue
.For my events pages, I want to reference data in
collections.venue
, namely finding the venue which has the same id as the one in an event’s frontmatter. I tried doing this using computed data:This generates an error:
Cannot read property 'find' of undefined
. If, however, I query a collection that has not been generated using pagination, then I don’t get this error.Is this a known limitation of computed data?
The text was updated successfully, but these errors were encountered: