@valerypopoff/rivet2-core 2.27.0 → 2.27.1

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.
@@ -8124,7 +8124,7 @@ function applyGraphBoundaryPortOrder(boundaryItems, portOrder) {
8124
8124
  if (!(portOrder == null ? void 0 : portOrder.length)) {
8125
8125
  return [...boundaryItems];
8126
8126
  }
8127
- const itemsById = new Map(boundaryItems.map((item) => [item.id, item]));
8127
+ const itemsById = new Map(boundaryItems.map((item) => [item.portId ?? item.id, item]));
8128
8128
  const usedIds = /* @__PURE__ */ new Set();
8129
8129
  const orderedItems = [];
8130
8130
  for (const id of portOrder) {
@@ -8139,7 +8139,7 @@ function applyGraphBoundaryPortOrder(boundaryItems, portOrder) {
8139
8139
  usedIds.add(id);
8140
8140
  }
8141
8141
  for (const item of boundaryItems) {
8142
- if (!usedIds.has(item.id)) {
8142
+ if (!usedIds.has(item.portId ?? item.id)) {
8143
8143
  orderedItems.push(item);
8144
8144
  }
8145
8145
  }