From 9ae47c9d5409508f7d98ef2612090c604c7e16a7 Mon Sep 17 00:00:00 2001 From: tokebe <43009413+tokebe@users.noreply.github.com> Date: Tue, 15 Aug 2023 14:00:09 -0400 Subject: [PATCH] fix: ensure trapi kgnode name is not array --- src/graph/knowledge_graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/knowledge_graph.js b/src/graph/knowledge_graph.js index 133e3530..ad1b5827 100644 --- a/src/graph/knowledge_graph.js +++ b/src/graph/knowledge_graph.js @@ -22,7 +22,7 @@ module.exports = class KnowledgeGraph { _createNode(kgNode) { const res = { categories: kgNode._semanticType, - name: kgNode._label, + name: Array.isArray(kgNode._label) ? kgNode._label[0] : kgNode._label, attributes: [ { attribute_type_id: 'biolink:xref',