fix: fix creating new terms

This commit is contained in:
Gregor Kleen 2021-06-28 09:44:24 +02:00
parent 7ad5737ae2
commit 9676615c55

View File

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