The Sankey component was trying to use a getPresentationAttributes function which doesn't exist neither in gfw codebase nor in recharts library.
Removing those calls to that non-existing function fixed the widget component.
Demo
[ ] go to/dashboards/country/USA/?category=land-cover&location=WyJjb3VudHJ5IiwiVVNBIl0%3D&map=eyJjYW5Cb3VuZCI6dHJ1ZX0%3D and check that the last widget displays correctly.
Notes
If applicable: ancilary topics, caveats, alternative strategies that didn't work out, etc.
Testing
Include any steps to verify the features this PR introduces.
If this fixes a bug, include bug reproduction steps.
Overview
The Sankey component was trying to use a
getPresentationAttributes
function which doesn't exist neither in gfw codebase nor in recharts library.Removing those calls to that non-existing function fixed the widget component.
Demo
/dashboards/country/USA/?category=land-cover&location=WyJjb3VudHJ5IiwiVVNBIl0%3D&map=eyJjYW5Cb3VuZCI6dHJ1ZX0%3D
and check that the last widget displays correctly.Notes
If applicable: ancilary topics, caveats, alternative strategies that didn't work out, etc.
Testing