biocore / emperor

Emperor a tool for the analysis and visualization of large microbial ecology datasets
http://biocore.github.io/emperor/
Other
52 stars 50 forks source link

More elegantly handle error when attempting to animate single-sample trajectory #784

Open fedarko opened 3 years ago

fedarko commented 3 years ago

From https://github.com/biocore/empress/pull/319:

Problem 1

When certain fields are selected as the trajectory / gradient in Emperor, I see an Uncaught TypeError: Cannot read property 'value' of undefined error in the console:

This is an Emperor feature/bug if you see the traceback this originates from the animations-controller.js. This happens when only single-sample trajectories are selected so there's nothing to animate. This should be better handled on the Emperor side.

Documenting this here for future reference.