Skip to content

Commit

Permalink
fix(studio): fix regression in utterance parsing (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
franklevasseur committed Nov 15, 2021
1 parent c764baf commit bce7938
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const textNodesFromUtterance = (
return _.chain(parsedSlots)
.flatMap((pslot, i, all) => {
const previousSlot = all[i - 1]
const from = previousSlot?.cleanPosition.start ?? 0
const from = previousSlot?.cleanPosition.end ?? 0
const to = pslot.cleanPosition.start

const slotExists = allSlots.some(s => s.name === pslot.name)
Expand Down

0 comments on commit bce7938

Please sign in to comment.