1
0
Fork 0
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:
Pavel Zavyalov 2022-09-24 13:29:05 +06:00
parent 261429576f
commit 64447ed9c0
No known key found for this signature in database
GPG key ID: D12476F8A1107A26
2 changed files with 13 additions and 5 deletions

View file

@ -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