framework
framework copied to clipboard
Changing Visualization after removing all metrics throws an unhandled error
Describe the bug When changing visualizations, the new visualization model is created. If there are no metrics in the request, the visualization creation will throw an uncaught error.
To Reproduce Steps to reproduce the behavior:
- Go to https://yahoo.github.io/navi/#/reports/1/view
- Remove all metrics
- Select the
Bar Chartvisualization - See error in console
Expected behavior Error should be handled in some way such as rendering a table with only dimension columns or giving a warning message and aborting the visualization change.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
- OS: MacOS
- Browser Chrome
- Version 79.0.3945.117
Need to check if still issue an issue