mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-09-27 12:39:18 +02:00
Remember that you need to deep clone!
This commit is contained in:
parent
8728ca1d1b
commit
89c82f6785
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue