Skip to content

Commit 11fe0dd

Browse files
🐛 Consider CellLineagePath as Pathway in PathwayBrowserNode
1 parent 32a2e6f commit 11fe0dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/reactome/server/graph/service/util/PathwayBrowserLocationsUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.reactome.server.graph.service.util;
22

33
import org.apache.commons.lang3.StringUtils;
4+
import org.reactome.server.graph.domain.model.CellLineagePath;
45
import org.reactome.server.graph.domain.model.Pathway;
56
import org.reactome.server.graph.domain.model.TopLevelPathway;
67
import org.reactome.server.graph.service.helper.PathwayBrowserNode;
@@ -97,7 +98,7 @@ private static PathwayBrowserNode getTreeFromGraphLeaf(PathwayBrowserNode leaf,
9798
tree.setClickable(leaf.isClickable());
9899
tree.setHighlighted(leaf.getHighlighted());
99100

100-
boolean isPathway = leaf.getType().equals(Pathway.class.getSimpleName()) || leaf.getType().equals(TopLevelPathway.class.getSimpleName());
101+
boolean isPathway = leaf.getType().equals(Pathway.class.getSimpleName()) || leaf.getType().equals(CellLineagePath.class.getSimpleName()) || leaf.getType().equals(TopLevelPathway.class.getSimpleName());
101102
boolean hasDiagram = leaf.hasDiagram();
102103
leaf.setUnique(false);
103104

0 commit comments

Comments
 (0)