Remember that you need to deep clone!

This commit is contained in:
Hans5958 2022-04-30 11:36:00 +07:00
parent 8728ca1d1b
commit 89c82f6785

View file

@ -252,7 +252,7 @@ function initDraw() {
center: {},
};
const pathWithPeriodsTemp = pathWithPeriods.concat()
const pathWithPeriodsTemp = JSON.parse(JSON.stringify(pathWithPeriods))
for (let i = pathWithPeriodsTemp.length - 1; i > 0; i--) {
for (let j = 0; j < i; j++) {