Skip to content

Commit 0b2c7c9

Browse files
committed
fix: fix safeId function
1 parent e48ab48 commit 0b2c7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Chart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
safeId () {
3333
// as long as this._uid() works there is no need to generate the key
3434
const key = () => Math.random().toString(36).replace('0.', '')
35-
return '__safe_id__' + this._uid || key()
35+
return '__safe_id__' + (this._uid || key())
3636
},
3737
computedDatasets () {
3838
return this.datasets

0 commit comments

Comments
 (0)