[Graph API] fix corpus parent id for graph

parent 3a7da9d2
Pipeline #1844 passed with stage
in 34 minutes and 30 seconds
......@@ -257,9 +257,8 @@ graphVersions n nId = do
. gm_list
. lfg_version
cId = maybe (panic "[G.V.G.API] Node has no parent")
identity
$ nodeGraph ^. node_parent_id
mcId <- getClosestParentIdByType nId NodeCorpus
let cId = maybe (panic "[G.V.G.API] Node has no parent") identity mcId
maybeListId <- defaultListMaybe cId
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