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 ->
|
Just oTId | tid == oTId ->
|
||||||
lift $ replace tid term
|
lift $ replace tid term
|
||||||
_other -> do
|
_other -> do
|
||||||
whenM (lift $ existsKey tid) $
|
whenM (lift $ exists [TermName ==. tfName]) $
|
||||||
throwE MsgTermExists
|
throwE MsgTermExists
|
||||||
lift $ insertKey tid term
|
lift $ insertKey tid term
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user