mirror of
https://github.com/aelve/guide.git
synced 2024-11-23 21:13:07 +03:00
Fix stupid bug (forgot to delete lines)
This commit is contained in:
parent
59c8640d69
commit
3d46a83c02
@ -557,8 +557,6 @@ deleteItem itemId = do
|
||||
|
||||
deleteTrait :: Uid -> Uid -> Acid.Update GlobalState ()
|
||||
deleteTrait itemId traitId = do
|
||||
itemById itemId . pros %= deleteFirst ((== traitId) . view uid)
|
||||
itemById itemId . cons %= deleteFirst ((== traitId) . view uid)
|
||||
let itemLens :: Lens' GlobalState Item
|
||||
itemLens = itemById itemId
|
||||
let isOurTrait trait = trait^.uid == traitId
|
||||
|
Loading…
Reference in New Issue
Block a user