ok I reproduced it and have the debugger stopped on bundle_collab.js:1854
the value of end
is 0 here, this causes this$1.items.get(end - 1)
to return ‘undefined’ so that next
is undefined and next.selection
is invalid.
JSON.stringify(state.collab$.unconfirmed)
returns:
"{"values":[{"step":{"stepType":"replace","from":138,"to":139},"inverted":{"stepType":"replace","from":138,"to":138,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":137,"to":138},"inverted":{"stepType":"replace","from":137,"to":137,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":134,"to":137},"inverted":{"stepType":"replace","from":134,"to":134,"slice":{"content":[{"type":"text","text":"d s"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":133,"to":134},"inverted":{"stepType":"replace","from":133,"to":133,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":132,"to":133},"inverted":{"stepType":"replace","from":132,"to":132,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":131,"to":132},"inverted":{"stepType":"replace","from":131,"to":131,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":129,"to":131},"inverted":{"stepType":"replace","from":129,"to":129,"slice":{"content":[{"type":"text","text":"sd"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":128,"to":129},"inverted":{"stepType":"replace","from":128,"to":128,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":125,"to":128},"inverted":{"stepType":"replace","from":125,"to":125,"slice":{"content":[{"type":"text","text":"sdf"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":124,"to":125},"inverted":{"stepType":"replace","from":124,"to":124,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":122,"to":124},"inverted":{"stepType":"replace","from":122,"to":122,"slice":{"content":[{"type":"text","text":"ds"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":121,"to":122},"inverted":{"stepType":"replace","from":121,"to":121,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":119,"to":121},"inverted":{"stepType":"replace","from":119,"to":119,"slice":{"content":[{"type":"text","text":"ds"}],"openLeft":0,"openRight":0}}},{"step":{"stepType":"replace","from":119,"to":119,"slice":{"content":[{"type":"text","text":"ds"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":119,"to":121}},{"step":{"stepType":"replace","from":121,"to":121,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":121,"to":122}},{"step":{"stepType":"replace","from":122,"to":122,"slice":{"content":[{"type":"text","text":"ds"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":122,"to":124}},{"step":{"stepType":"replace","from":124,"to":124,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":124,"to":125}},{"step":{"stepType":"replace","from":125,"to":125,"slice":{"content":[{"type":"text","text":"sdf"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":125,"to":128}},{"step":{"stepType":"replace","from":128,"to":128,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":128,"to":129}},{"step":{"stepType":"replace","from":129,"to":129,"slice":{"content":[{"type":"text","text":"sd"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":129,"to":131}},{"step":{"stepType":"replace","from":131,"to":131,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":131,"to":132}},{"step":{"stepType":"replace","from":132,"to":132,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":132,"to":133}},{"step":{"stepType":"replace","from":133,"to":133,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":133,"to":134}},{"step":{"stepType":"replace","from":134,"to":134,"slice":{"content":[{"type":"text","text":"d s"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":134,"to":137}},{"step":{"stepType":"replace","from":137,"to":137,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":137,"to":138}},{"step":{"stepType":"replace","from":138,"to":138,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":138,"to":139}},{"step":{"stepType":"replace","from":139,"to":139,"slice":{"content":[{"type":"text","text":"s"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":139,"to":140}},{"step":{"stepType":"replace","from":140,"to":140,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":140,"to":141}},{"step":{"stepType":"replace","from":141,"to":141,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":141,"to":142}},{"step":{"stepType":"replace","from":142,"to":142,"slice":{"content":[{"type":"text","text":"sd"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":142,"to":144}},{"step":{"stepType":"replace","from":144,"to":144,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":144,"to":145}},{"step":{"stepType":"replace","from":145,"to":145,"slice":{"content":[{"type":"text","text":"sd"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":145,"to":147}},{"step":{"stepType":"replace","from":147,"to":147,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":147,"to":148}},{"step":{"stepType":"replace","from":148,"to":148,"slice":{"content":[{"type":"text","text":"ds"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":148,"to":150}},{"step":{"stepType":"replace","from":150,"to":150,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":150,"to":151}},{"step":{"stepType":"replace","from":151,"to":151,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":151,"to":152}},{"step":{"stepType":"replace","from":104,"to":104,"slice":{"content":[{"type":"text","text":"d"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":104,"to":105}},{"step":{"stepType":"replace","from":105,"to":105,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":105,"to":106}},{"step":{"stepType":"replace","from":106,"to":106,"slice":{"content":[{"type":"text","text":"ds"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":106,"to":108}},{"step":{"stepType":"replace","from":108,"to":108,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":108,"to":109}},{"step":{"stepType":"replace","from":109,"to":109,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":109,"to":110}},{"step":{"stepType":"replace","from":110,"to":110,"slice":{"content":[{"type":"text","text":"sd f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":110,"to":114}},{"step":{"stepType":"replace","from":114,"to":114,"slice":{"content":[{"type":"text","text":"y"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":114,"to":115}},{"step":{"stepType":"replace","from":115,"to":115,"slice":{"content":[{"type":"text","text":"d"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":115,"to":116}},{"step":{"stepType":"replace","from":116,"to":116,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":116,"to":117}},{"step":{"stepType":"replace","from":117,"to":117,"slice":{"content":[{"type":"text","text":"yd s"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":117,"to":121}},{"step":{"stepType":"replace","from":121,"to":121,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":121,"to":122}},{"step":{"stepType":"replace","from":122,"to":122,"slice":{"content":[{"type":"text","text":"ds"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":122,"to":124}},{"step":{"stepType":"replace","from":124,"to":124,"slice":{"content":[{"type":"text","text":"y"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":124,"to":125}},{"step":{"stepType":"replace","from":125,"to":125,"slice":{"content":[{"type":"text","text":" "}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":125,"to":126}},{"step":{"stepType":"replace","from":126,"to":126,"slice":{"content":[{"type":"text","text":"f"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":126,"to":127}},{"step":{"stepType":"replace","from":127,"to":127,"slice":{"content":[{"type":"text","text":"ds"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":127,"to":129}},{"step":{"stepType":"replace","from":129,"to":129,"slice":{"content":[{"type":"text","text":"y"}],"openLeft":0,"openRight":0}},"inverted":{"stepType":"replace","from":129,"to":130}}]}"
I’ll keep it open in the break if you need more info.
Thx!