Skip to content

Commit

Permalink
indexOfFirstItemInNewSubgroup bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jhweir committed Jan 21, 2025
1 parent dd6eefd commit c010147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/synergy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ async function processItemsAndAddToConversation(perspective, channelId, unproces
}
// link items to subgroups
const indexOfFirstItemInNewSubgroup =
newSubgroup && unprocessedItems.findIndex((item) => item.id === newSubgroup.firstItemId);
newSubgroup && unprocessedItems.findIndex((item) => item.baseExpression === newSubgroup.firstItemId);
for (const [itemIndex, item] of unprocessedItems.entries()) {
const itemsSubgroup = newSubgroup && itemIndex >= indexOfFirstItemInNewSubgroup ? newSubgroupEntity : lastSubgroup;

Expand Down

0 comments on commit c010147

Please sign in to comment.