Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christian Merten
haskell-gargantext
Commits
ea21bbbe
Commit
ea21bbbe
authored
Aug 22, 2024
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Graph API] fix cluster renaming
parent
7649e70b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
API.hs
src/Gargantext/Core/Viz/Graph/API.hs
+1
-1
Types.hs
src/Gargantext/Core/Viz/Graph/Types.hs
+1
-1
No files found.
src/Gargantext/Core/Viz/Graph/API.hs
View file @
ea21bbbe
...
@@ -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
...
...
src/Gargantext/Core/Viz/Graph/Types.hs
View file @
ea21bbbe
...
@@ -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"
)
''
G
raphLegendAPI
)
$
(
deriveJSON
(
unPrefix
"_graphAPI"
)
''
G
raphLegendAPI
)
instance
ToSchema
GraphLegendAPI
where
instance
ToSchema
GraphLegendAPI
where
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment