smoosic 1.0.41 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1247,6 +1247,9 @@ export class SmoScore {
1247
1247
  return staff;
1248
1248
  }
1249
1249
  updateCompoundTimeSignature() {
1250
+ if (this.staves.length <= 0 || this.staves[0].measures.length <= 0) {
1251
+ return;
1252
+ }
1250
1253
  let existingTs = this.staves[0].measures[0].timeSignature;
1251
1254
  this.staves.forEach((stave: SmoSystemStaff) => {
1252
1255
  let index = 0;