mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-08 05:47:07 +09:00
[feat-GO-212-changes-for-kanban] fix
This commit is contained in:
parent
261429576f
commit
64447ed9c0
2 changed files with 13 additions and 5 deletions
|
@ -74,12 +74,12 @@ func ApplyChanges(origin []string, change []Change) []string {
|
|||
if pos < 0 {
|
||||
continue
|
||||
}
|
||||
Insert(origin, pos+1, ch.Ids...)
|
||||
origin = Insert(origin, pos+1, ch.Ids...)
|
||||
case OperationMove:
|
||||
// TODO
|
||||
case OperationRemove:
|
||||
origin = Filter(origin, func(id string) bool{
|
||||
return FindPos(ch.Ids, id) > -1
|
||||
return FindPos(ch.Ids, id) < 0
|
||||
})
|
||||
case OperationReplace:
|
||||
origin = ch.Ids
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue