Commit d6147dba authored by jerasmus's avatar jerasmus

Address review feedback

Remove the redundant `array.map` for nodes
parent 9078f3f3
......@@ -144,7 +144,7 @@ export default {
},
normalizeData(key, data) {
return this.entries[key].concat(
this.paginatedTreeEnabled ? data.nodes.map((entry) => entry) : data.map(({ node }) => node),
this.paginatedTreeEnabled ? data.nodes : data.map(({ node }) => node),
);
},
hasNextPage(data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment