Commit ea21bbbe authored by Karen Konou's avatar Karen Konou

[Graph API] fix cluster renaming

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