Uh oh!
There was an error while loading. Please reload this page.
Set enabled:false when filter target array is empty - #3766
Conversation
- see #2908 for more info, - this fixes many potential problems downstream
| if(enabled) { | ||
| var target = coerce('target'); | ||
| if(Lib.isArrayOrTypedArray(target) && target.length === 0) { |
There was a problem hiding this comment.
Good call. Thanks for the review!
There was a problem hiding this comment.
... after transform _module.calc loop - that way filter transforms that remove all data coordinates don't result in errors - of all the mocks listed in mock_lists.js, only 'scattercarpet' and 'world-cals' still error out (wip)
archmoj
commented
May 8, 2019
@etpinard you mentioned a possible conflict on |
etpinard
commented
May 8, 2019
and the fix is in 84c3606 |
archmoj
commented
May 8, 2019
Looks very good. |
etpinard
commented
May 8, 2019
It is handled as it results in |
archmoj
commented
May 8, 2019
Could you please provide a codepen example for that? |
etpinard
commented
May 8, 2019
|
archmoj
commented
May 8, 2019
Thanks. Now could you please check this one. |
I think so. It's not great, but I think traces with |
archmoj
commented
May 8, 2019
Excellent. |
closes#2908 - by implementing #2908 (comment)
cc @plotly/plotly_js
before/after example: https://codepen.io/etpinard/pen/wYdppB / https://codepen.io/etpinard/pen/WWOVBV