Skip to content

Commit

Permalink
remove taxa from node object to prevent trapi error
Browse files Browse the repository at this point in the history
  • Loading branch information
Woozl committed Apr 30, 2024
1 parent f31f7df commit 467dd20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/queryGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 467dd20

Please sign in to comment.