tods-competition-factory 1.8.32 → 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.
@@ -6226,7 +6226,7 @@ function getAllStructureMatchUps({
6226
6226
  const matchUpCategory = collectionDefinition?.category ? {
6227
6227
  ...context?.category || {},
6228
6228
  ...collectionDefinition.category
6229
- } : context?.category;
6229
+ } : context?.category ?? event2?.category;
6230
6230
  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;
6231
6231
  const competitiveProfile = contextProfile?.withCompetitiveness && getMatchUpCompetitiveProfile({ ...contextContent, matchUp });
6232
6232
  const finishingPositionRange = matchUp.finishingPositionRange ?? additionalContext.finishingPositionRange;
@@ -6236,9 +6236,9 @@ function getAllStructureMatchUps({
6236
6236
  ...onlyDefined({
6237
6237
  matchUpFormat: matchUp.matchUpType === TEAM$1 ? void 0 : matchUpFormat,
6238
6238
  tieFormat: matchUp.matchUpType !== TEAM$1 ? void 0 : tieFormat,
6239
+ gender: collectionDefinition?.gender ?? event2?.gender,
6239
6240
  roundOfPlay: stage !== QUALIFYING && isConvertableInteger(initialRoundOfPlay2) && initialRoundOfPlay2 + (roundNumber || 0),
6240
6241
  endDate: matchUp.endDate ?? endDate,
6241
- gender: collectionDefinition?.gender,
6242
6242
  discipline: event2?.discipline,
6243
6243
  category: matchUpCategory,
6244
6244
  finishingPositionRange,