Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect categoryCollection values #9

Open
olegfedak opened this issue Sep 27, 2023 · 0 comments
Open

Incorrect categoryCollection values #9

olegfedak opened this issue Sep 27, 2023 · 0 comments

Comments

@olegfedak
Copy link

I am a bit confused.

My config:

categoryVar: "categories",
itemsCollection: "posts",
categoryCollection: "postCategories"

And the collection "postCategories" returns an empty Array of posts:

{ title: 'news', slug: 'news', posts: [] },

If the configuration is set to default:

categoryVar: "categories",
itemsCollection: "posts",
categoryCollection: "categories"

It works well:

{ title: 'news', slug: 'news', posts: [ [Object] ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant