tods-competition-factory 1.9.3 → 1.9.4

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.
@@ -23857,8 +23857,7 @@ function generateDrawDefinition(params) {
23857
23857
  }
23858
23858
  }
23859
23859
  const policiesToAttach = {
23860
- [POLICY_TYPE_AVOIDANCE]: appliedPolicies[POLICY_TYPE_AVOIDANCE],
23861
- ...POLICY_SEEDING_DEFAULT
23860
+ [POLICY_TYPE_AVOIDANCE]: appliedPolicies[POLICY_TYPE_AVOIDANCE]
23862
23861
  };
23863
23862
  if (policyDefinitions) {
23864
23863
  if (typeof policyDefinitions !== "object") {
@@ -23882,6 +23881,10 @@ function generateDrawDefinition(params) {
23882
23881
  attachPolicies({ drawDefinition, policyDefinitions: policiesToAttach });
23883
23882
  }
23884
23883
  if (!appliedPolicies[POLICY_TYPE_SEEDING] && !policyDefinitions[POLICY_TYPE_SEEDING]) {
23884
+ attachPolicies({
23885
+ drawDefinition,
23886
+ policyDefinitions: POLICY_SEEDING_DEFAULT
23887
+ });
23885
23888
  Object.assign(appliedPolicies, POLICY_SEEDING_DEFAULT);
23886
23889
  }
23887
23890
  let structureId = existingDrawDefinition?.structures?.find(