Browse Source

Merge pull request #816 from wenfangdu/patch-1

fix: `cfg["rowlen"]` might be `undefined`
master
Dushusir 4 years ago
committed by GitHub
parent
commit
0c531cc36a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/global/getRowlen.js

2
src/global/getRowlen.js

@ -87,7 +87,7 @@ function rowlenByRange(d, r1, r2, cfg) {
if(currentRowLen != Store.defaultrowlen){ if(currentRowLen != Store.defaultrowlen){
cfg_clone["rowlen"][r] = currentRowLen; cfg_clone["rowlen"][r] = currentRowLen;
}else{ }else{
if(cfg["rowlen"][r]){ if(cfg["rowlen"]?.[r]){
cfg_clone["rowlen"][r] = cfg["rowlen"][r] cfg_clone["rowlen"][r] = cfg["rowlen"][r]
} }
} }

Loading…
Cancel
Save