Use structuredClone

This commit is contained in:
Hans5958 2023-07-01 23:06:06 +07:00
parent 8a53b17d95
commit 0093632d0e
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ function initDraw() {
if (!isNaN(Number(exportObject.id))) exportObject.id = Number(exportObject.id)
}
const pathWithPeriodsTemp = JSON.parse(JSON.stringify(pathWithPeriods))
const pathWithPeriodsTemp = structuredClone(pathWithPeriods)
for (let i = pathWithPeriodsTemp.length - 1; i > 0; i--) {
for (let j = 0; j < i; j++) {