tods-competition-factory 1.8.33 → 1.8.34

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.
@@ -4744,7 +4744,7 @@ function getAllStructureMatchUps({
4744
4744
  const matchUpCategory = collectionDefinition?.category ? {
4745
4745
  ...context?.category || {},
4746
4746
  ...collectionDefinition.category
4747
- } : context?.category;
4747
+ } : context?.category ?? event2?.category;
4748
4748
  const processCodes = matchUp.processCodes?.length && matchUp.processCodes || collectionDefinition?.processCodes?.length && collectionDefinition?.processCodes || structure?.processCodes?.length && structure?.processCodes || drawDefinition?.processCodes?.length && drawDefinition?.processCodes || event2?.processCodes?.length && event2?.processCodes || tournamentRecord?.processCodes;
4749
4749
  const competitiveProfile = contextProfile?.withCompetitiveness && getMatchUpCompetitiveProfile({ ...contextContent, matchUp });
4750
4750
  const finishingPositionRange = matchUp.finishingPositionRange ?? additionalContext.finishingPositionRange;
@@ -4754,9 +4754,9 @@ function getAllStructureMatchUps({
4754
4754
  ...onlyDefined({
4755
4755
  matchUpFormat: matchUp.matchUpType === TEAM$1 ? void 0 : matchUpFormat,
4756
4756
  tieFormat: matchUp.matchUpType !== TEAM$1 ? void 0 : tieFormat,
4757
+ gender: collectionDefinition?.gender ?? event2?.gender,
4757
4758
  roundOfPlay: stage !== QUALIFYING && isConvertableInteger(initialRoundOfPlay2) && initialRoundOfPlay2 + (roundNumber || 0),
4758
4759
  endDate: matchUp.endDate ?? endDate,
4759
- gender: collectionDefinition?.gender,
4760
4760
  discipline: event2?.discipline,
4761
4761
  category: matchUpCategory,
4762
4762
  finishingPositionRange,