fix consistency bug - ref.toStruct does not correctly create GC when offset is specified
This commit is contained in:
parent
338968031b
commit
14df5b72af
@ -624,6 +624,7 @@ export class ItemRef extends AbstractStructRef {
|
||||
this.id = createID(id.client, id.clock + offset)
|
||||
this.left = createID(this.id.client, this.id.clock - 1)
|
||||
this.content = this.content.splice(offset)
|
||||
this.length -= offset
|
||||
}
|
||||
|
||||
const left = this.left === null ? null : getItemCleanEnd(transaction, store, this.left)
|
||||
|
Loading…
x
Reference in New Issue
Block a user