diff --git a/lib/models/documents/document.dart b/lib/models/documents/document.dart index 1d7da881..235fc8da 100644 --- a/lib/models/documents/document.dart +++ b/lib/models/documents/document.dart @@ -74,7 +74,7 @@ class Document { Delta delta = Delta(); if (dataIsNotEmpty) { - delta = insert(index + length, data); + delta = insert(index + len, data); } if (len > 0) {