fix: fix creating new terms
This commit is contained in:
parent
7ad5737ae2
commit
9676615c55
@ -213,7 +213,7 @@ termEditHandler mtid template = do
|
||||
Just oTId | tid == oTId ->
|
||||
lift $ replace tid term
|
||||
_other -> do
|
||||
whenM (lift $ existsKey tid) $
|
||||
whenM (lift $ exists [TermName ==. tfName]) $
|
||||
throwE MsgTermExists
|
||||
lift $ insertKey tid term
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user