Fix an out of bound exception in crdt array operations

This commit is contained in:
Hakan Shehu
2025-01-21 19:24:23 +01:00
parent dff5a2257f
commit 715be7910d

View File

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