Skip to content

Commit 467dd20

Browse files
committed
remove taxa from node object to prevent trapi error
1 parent f31f7df commit 467dd20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/queryGraph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function toCurrentTRAPI(qGraph) {
142142
function prune(q_graph) {
143143
const clonedQueryGraph = _.cloneDeep(q_graph);
144144
Object.keys(clonedQueryGraph.nodes).forEach((n) => {
145-
pruneEmptyArray(clonedQueryGraph.nodes[n], 'categories');
145+
delete clonedQueryGraph.nodes[n].taxa;
146146
pruneEmptyArray(clonedQueryGraph.nodes[n], 'ids');
147147
});
148148
Object.keys(clonedQueryGraph.edges).forEach((e) => {

0 commit comments

Comments
 (0)