Skip to content

Commit 13aed99

Browse files
authored
Fix smooth error
1 parent 9ce54f7 commit 13aed99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/user-chart/render.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class SmoothContext {
112112
}
113113

114114
end(): number[] {
115-
Object.keys(new Array(this.step))
115+
Object.keys(Array.from(new Array(this.step)))
116116
.forEach(() => this.data.push(this.lastVal))
117117
return this.data
118118
}
@@ -209,4 +209,4 @@ async function upload2Gist(token: string, svg: string) {
209209
await createGist(token, form)
210210
console.log('Created new gist')
211211
}
212-
}
212+
}

0 commit comments

Comments
 (0)