mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00: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) {
|
if (a is InsertOperation) {
|
||||||
final newPath = transformPath(a.path, b.path);
|
final newPath = transformPath(a.path, b.path);
|
||||||
return b.copyWithPath(newPath);
|
return b.copyWithPath(newPath);
|
||||||
} else if (b is DeleteOperation) {
|
} else if (a is DeleteOperation) {
|
||||||
final newPath = transformPath(a.path, b.path, -1);
|
final newPath = transformPath(a.path, b.path, -1);
|
||||||
return b.copyWithPath(newPath);
|
return b.copyWithPath(newPath);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user