未验证 提交 dd07f526 编写于 作者: Y Yi Shen 提交者: GitHub

Merge pull request #13898 from apache/feat-bar-race

fix(bar-race): fix when no oldOrder
......@@ -512,7 +512,7 @@ class BarView extends ChartView {
* bars are both out of sight, we don't wish to trigger reorder action
* as long as the order in the view doesn't change.
*/
if (!oldOrder[i] || oldOrder[i].ordinalNumber !== newOrder[i].ordinalNumber) {
if (!oldOrder || !oldOrder[i] || oldOrder[i].ordinalNumber !== newOrder[i].ordinalNumber) {
this.removeOnRenderedListener(api);
const action = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册