-
Notifications
You must be signed in to change notification settings - Fork 491
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
Failed to render when string is passed to geomap data #756
Comments
Hey @matuzalemsteles this is not a bug, it's a feature ;) Jokes aside, the reason for this is that If you update you Tell me if you need any help. |
Thanks for the clarifications @julien, it looks better now. I'll just update this to be included in data so can work properly. I'm just looking at the geomap being rendered on clayui.com. |
Ok thanks @matuzalemsteles |
Closing this, since the problem has been solved. |
Hey @julien, it seems to fail when I try to pass a string in the
data
, it manages to do the Fetch but in DataComponent._resolveData it expects it to come inside adata
and arrives{"type":"FeatureCollection","features"...
.https://github.com/liferay/clay/blob/master/packages/clay-charts/src/DataComponent.js#L38
He ends up giving an error soon after:
https://github.com/liferay/clay/blob/master/packages/clay-charts/src/Geomap.js#L150
It works fine when I change
.then(res => res.data);
forthen(res => res);
, but I do not know if it is expected.The text was updated successfully, but these errors were encountered: