tods-competition-factory 1.7.16 → 1.7.17

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.
@@ -362,7 +362,7 @@ var matchUpFormatCode = {
362
362
  };
363
363
 
364
364
  function factoryVersion() {
365
- return '1.7.16';
365
+ return '1.7.17';
366
366
  }
367
367
 
368
368
  /******************************************************************************
@@ -47225,17 +47225,19 @@ function generateAndPopulatePlayoffStructures(params) {
47225
47225
  });
47226
47226
  var loserTargetLink = targetData.targetLinks.loserTargetLink, _a = targetData.targetMatchUps, loserMatchUpDrawPositionIndex = _a.loserMatchUpDrawPositionIndex, // only present when positionTargets found without loserMatchUpId
47227
47227
  loserMatchUp = _a.loserMatchUp;
47228
- var targetStructureId = loserTargetLink.target.structureId;
47229
- var targetDrawPosition = loserMatchUp.drawPositions[loserMatchUpDrawPositionIndex];
47230
- var result = assignDrawPositionBye$1({
47231
- drawPosition: targetDrawPosition,
47232
- structureId: targetStructureId,
47233
- tournamentRecord: tournamentRecord,
47234
- drawDefinition: drawDefinition,
47235
- event: event,
47236
- });
47237
- if (result.error)
47238
- console.log(result.error);
47228
+ if (loserTargetLink && loserMatchUp) {
47229
+ var targetStructureId = loserTargetLink.target.structureId;
47230
+ var targetDrawPosition = loserMatchUp.drawPositions[loserMatchUpDrawPositionIndex];
47231
+ var result = assignDrawPositionBye$1({
47232
+ drawPosition: targetDrawPosition,
47233
+ structureId: targetStructureId,
47234
+ tournamentRecord: tournamentRecord,
47235
+ drawDefinition: drawDefinition,
47236
+ event: event,
47237
+ });
47238
+ if (result.error)
47239
+ console.log(result.error);
47240
+ }
47239
47241
  });
47240
47242
  // the matchUps in the source structure must have goesTo details added
47241
47243
  var matchUpModifications = [];