tods-competition-factory 1.6.24 → 1.6.25

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.
package/dist/index.mjs CHANGED
@@ -329,7 +329,7 @@ const matchUpFormatCode = {
329
329
  };
330
330
 
331
331
  function factoryVersion() {
332
- return "1.6.24";
332
+ return "1.6.25";
333
333
  }
334
334
 
335
335
  function getObjectTieFormat(obj) {
@@ -51067,8 +51067,8 @@ function unPublishEvent({
51067
51067
  event
51068
51068
  });
51069
51069
  const itemValue = timeItem?.itemValue || { [status]: {} };
51070
- delete itemValue[status].drawIds;
51071
51070
  delete itemValue[status].structureIds;
51071
+ delete itemValue[status].drawIds;
51072
51072
  const updatedTimeItem = { itemValue, itemType };
51073
51073
  addEventTimeItem({ event, timeItem: updatedTimeItem, removePriorValues });
51074
51074
  addNotice({
@@ -51460,8 +51460,9 @@ function publishEvent(params) {
51460
51460
  if (structureIdsToAdd?.length) {
51461
51461
  structureIds = unique(structureIds.push(...structureIdsToAdd));
51462
51462
  }
51463
+ const existingStatusValue = timeItem?.itemValue?.[status];
51463
51464
  const updatedTimeItem = {
51464
- itemValue: { [status]: { drawIds, structureIds } },
51465
+ itemValue: { [status]: { ...existingStatusValue, drawIds, structureIds } },
51465
51466
  itemType
51466
51467
  };
51467
51468
  addEventTimeItem({ event, timeItem: updatedTimeItem, removePriorValues });