Skip to content

Commit 9dbb639

Browse files
committed
fix: safe_id with key() not working
1 parent 307997b commit 9dbb639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CCharts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const CCharts = props=>{
5555
const safeId = (()=>{
5656
// as long as this._uid() works there is no need to generate the key
5757
const key = () => Math.random().toString(36).replace('0.', '')
58-
return '__safe_id__' + _uid || key()
58+
return '__safe_id__' + (_uid || key())
5959
})();
6060
const computedDatasets = (()=>{
6161
return datasets

0 commit comments

Comments
 (0)