Skip to content

Commit

Permalink
Update assistantUtils.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
rosannamilner authored Aug 5, 2024
1 parent 50153f3 commit 11760b6
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,6 @@ function treeMapToElementsRecursive(
(span.start <= hSpanStart && hSpanStart <= span.end) ||
(span.start <= hSpanEnd && hSpanEnd <= span.end)
) {
// //If there's an overlap
// console.log(
// "Found lapping span ",
// span.start,
// span.end,
// hSpanStart,
// hSpanEnd,
// );

// If span doesn't start before the current index
if (hSpanStart > currentIndex) {
Expand All @@ -133,10 +125,6 @@ function treeMapToElementsRecursive(
),
);
} else {
// console.log(
// "Not wrapping: ",
// text.substring(boundedStart, boundedEnd),
// );
childElems.push(text.substring(boundedStart, boundedEnd));
}

Expand Down

0 comments on commit 11760b6

Please sign in to comment.