We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e31b41 commit 5835396Copy full SHA for 5835396
src/editor/core/position/Position.ts
@@ -303,7 +303,8 @@ export class Position {
303
let startRowIndex = 0
304
for (let i = 0; i < pageRowList.length; i++) {
305
const rowList = pageRowList[i]
306
- const startIndex = rowList[0]?.startIndex
+ if (!rowList?.length) continue
307
+ const startIndex = rowList[0].startIndex
308
this.computePageRowPosition({
309
positionList: this.positionList,
310
rowList,
0 commit comments