Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Fix an out of bound exception in crdt array operations
Hakan Shehu715be7910d5e
diff --git a/packages/crdt/src/index.ts b/packages/crdt/src/index.tsindex 40d324ee..7e237671 100644--- a/packages/crdt/src/index.ts+++ b/packages/crdt/src/index.ts@@ -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);}}