fix consistency bug - ref.toStruct does not correctly create GC when offset is specified

This commit is contained in:
Kevin Jahns 2019-06-18 18:46:19 +02:00
parent 338968031b
commit 14df5b72af

View File

@ -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)