fix: transform error

This commit is contained in:
Vincent Chan 2022-08-05 10:58:17 +08:00
parent b667c912a7
commit 593cc253c2

View File

@ -210,7 +210,7 @@ Operation transformOperation(Operation a, Operation b) {
if (a is InsertOperation) {
final newPath = transformPath(a.path, b.path);
return b.copyWithPath(newPath);
} else if (b is DeleteOperation) {
} else if (a is DeleteOperation) {
final newPath = transformPath(a.path, b.path, -1);
return b.copyWithPath(newPath);
}