Skip to content

Commit 54fa324

Browse files
committed
fixing an issue where triples are null
1 parent 2ba86f5 commit 54fa324

2 files changed

Lines changed: 2 additions & 72 deletions

File tree

examples/pharma-research/src/main/ml-modules/root/entities/workspace.sjs

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/main/ml-modules/root/lib/graph-lib.sjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ function fetchNodeInfoMapWithCache(uris) {
8686
}
8787

8888
function expandToGraph(uris, predicates, expansionSpec, targetEntity) {
89-
if (predicates == null) {
90-
return null;
91-
}
92-
if (predicates.length === 0) {
93-
return null;
89+
if (predicates == null || predicates.length === 0) {
90+
return [];
9491
}
9592

9693
predicates = predicates

0 commit comments

Comments
 (0)