[Graph API] fix corpus parent id for graph

parent 3a7da9d2
...@@ -257,9 +257,8 @@ graphVersions n nId = do ...@@ -257,9 +257,8 @@ graphVersions n nId = do
. gm_list . gm_list
. lfg_version . lfg_version
cId = maybe (panic "[G.V.G.API] Node has no parent") mcId <- getClosestParentIdByType nId NodeCorpus
identity let cId = maybe (panic "[G.V.G.API] Node has no parent") identity mcId
$ nodeGraph ^. node_parent_id
maybeListId <- defaultListMaybe cId maybeListId <- defaultListMaybe cId
case maybeListId of case maybeListId of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment