Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Sample project: Cannot read property 'isComponent' of null #4

Closed
CMeeg opened this issue Sep 15, 2019 · 1 comment
Closed

Sample project: Cannot read property 'isComponent' of null #4

CMeeg opened this issue Sep 15, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@CMeeg
Copy link
Owner

CMeeg commented Sep 15, 2019

This issue originated in #2:

I ran into an issue when trying to query from the Kentico Cloud demo project "Sample Project"

The line that fails is below

https://github.com/CMeeg/gridsome-source-kentico-cloud/blob/993313d6cc3656ee1692ff8139dd5f8ee5192f90/src/KenticoCloudSource.js#L181

The error is Cannot read property 'isComponent' of null

I resolved this issue by changing the line to if (!!collectionNode && !collectionNode.isComponent) {.

@CMeeg CMeeg self-assigned this Sep 15, 2019
@CMeeg CMeeg added the bug Something isn't working label Sep 15, 2019
@CMeeg
Copy link
Owner Author

CMeeg commented Sep 15, 2019

A fix for this has been pushed and will go in the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant