From 467dd20292e1f1f61f47947930c2e1d9f80cea57 Mon Sep 17 00:00:00 2001 From: David Glymph Date: Tue, 30 Apr 2024 11:27:12 -0400 Subject: [PATCH] remove taxa from node object to prevent trapi error --- src/utils/queryGraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/queryGraph.js b/src/utils/queryGraph.js index 10559b62..a40bbcbd 100644 --- a/src/utils/queryGraph.js +++ b/src/utils/queryGraph.js @@ -142,7 +142,7 @@ function toCurrentTRAPI(qGraph) { function prune(q_graph) { const clonedQueryGraph = _.cloneDeep(q_graph); Object.keys(clonedQueryGraph.nodes).forEach((n) => { - pruneEmptyArray(clonedQueryGraph.nodes[n], 'categories'); + delete clonedQueryGraph.nodes[n].taxa; pruneEmptyArray(clonedQueryGraph.nodes[n], 'ids'); }); Object.keys(clonedQueryGraph.edges).forEach((e) => {