mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Fix an out of bound exception in crdt array operations
This commit is contained in:
@@ -262,7 +262,7 @@ export class YDoc {
|
||||
}
|
||||
|
||||
if (yArray.length > length) {
|
||||
yArray.delete(yArray.length - 1, yArray.length - length);
|
||||
yArray.delete(length, yArray.length - length);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user