Skip to content

Commit

Permalink
fix: ensure trapi kgnode name is not array
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Aug 15, 2023
1 parent 9ce3227 commit 9ae47c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph/knowledge_graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9ae47c9

Please sign in to comment.