Commit ea21bbbe authored by Karen Konou's avatar Karen Konou

[Graph API] fix cluster renaming

parent 7649e70b
Pipeline #6522 passed with stages
in 73 minutes and 22 seconds
......@@ -303,7 +303,7 @@ updateGraphLegend :: HasNodeError err
=> NodeId
-> GraphLegendAPI
-> DBCmd err NodeId
updateGraphLegend nId (GraphLegendAPI { _graphAPILegend = lg }) = do
updateGraphLegend nId (GraphLegendAPI lg ) = do
nodeGraph <- getNodeWith nId (Proxy :: Proxy HyperdataGraph)
let graph = nodeGraph ^. node_hyperdata . hyperdataGraph
case graph of
......
......@@ -243,7 +243,7 @@ instance FromField HyperdataGraphAPI
-----------------------------------------------------------
data GraphLegendAPI = GraphLegendAPI { _graphAPILegend :: [LegendField] }
data GraphLegendAPI = GraphLegendAPI [LegendField]
deriving (Show, Generic)
$(deriveJSON (unPrefix "_graphAPI") ''GraphLegendAPI)
instance ToSchema GraphLegendAPI where
......
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