Skip to content

Commit

Permalink
Fixed #19053, item series update issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuminski committed Jun 1, 2023
1 parent 2b3fed7 commit 721db0d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ts/Series/Item/ItemSeries.ts
Expand Up @@ -345,18 +345,21 @@ class ItemSeries extends PieSeries {
i++;
}
}
graphics.forEach((graphic, i): void => {

for (let j = 0; j < graphics.length; j++) {
const graphic = graphics[j];
if (!graphic) {
return;
}

if (!graphic.isActive) {
graphic.destroy();
graphics.splice(i, 1);
graphics.splice(j, 1);
j--; // Need to substract 1 after splice, #19053
} else {
graphic.isActive = false;
}
});
}
});
}

Expand Down

0 comments on commit 721db0d

Please sign in to comment.