mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-11-10 10:18:57 +03:00
fix: transform error
This commit is contained in:
parent
b667c912a7
commit
593cc253c2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user