tods-competition-factory 1.2.13 → 1.2.15

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.
@@ -14654,7 +14654,7 @@ var __spreadValues$G = (a, b) => {
14654
14654
  return a;
14655
14655
  };
14656
14656
  function generateAndPopulateRRplayoffStructures(params) {
14657
- var _a;
14657
+ var _a, _b;
14658
14658
  const stack = "generateAndPopulateRRplayoffStructures";
14659
14659
  if (!params.playoffGroups) {
14660
14660
  return decorateResult({
@@ -14734,12 +14734,12 @@ function generateAndPopulateRRplayoffStructures(params) {
14734
14734
  });
14735
14735
  const finishingPositionParticipantIds = {};
14736
14736
  positionAssignments.forEach((assignment) => {
14737
- const {
14738
- extension: { value: participantResult }
14739
- } = findExtension({
14737
+ var _a2;
14738
+ const result2 = findExtension({
14740
14739
  element: assignment,
14741
14740
  name: TALLY
14742
14741
  });
14742
+ const participantResult = (_a2 = result2 == null ? void 0 : result2.extension) == null ? void 0 : _a2.value;
14743
14743
  const groupOrder = participantResult == null ? void 0 : participantResult.groupOrder;
14744
14744
  if (groupOrder) {
14745
14745
  if (!finishingPositionParticipantIds[groupOrder])
@@ -14756,8 +14756,9 @@ function generateAndPopulateRRplayoffStructures(params) {
14756
14756
  event: params.event,
14757
14757
  drawDefinition
14758
14758
  });
14759
- if (result.error)
14759
+ if (result.error && ((_b = result.error) == null ? void 0 : _b.code) !== INCOMPLETE_SOURCE_STRUCTURE.code) {
14760
14760
  return decorateResult({ result, stack });
14761
+ }
14761
14762
  return __spreadValues$G({
14762
14763
  structures: playoffStructures,
14763
14764
  links: playoffLinks,