From 8136185686bc8d0628781ac0cb12366f7e4bf091 Mon Sep 17 00:00:00 2001 From: pem Date: Thu, 10 Oct 2019 10:49:15 +0200 Subject: [PATCH] Removed useless argument --- packages/ra-tree-core/src/getTreeFromArray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-tree-core/src/getTreeFromArray.js b/packages/ra-tree-core/src/getTreeFromArray.js index 505712dab20..55dca64ecb6 100644 --- a/packages/ra-tree-core/src/getTreeFromArray.js +++ b/packages/ra-tree-core/src/getTreeFromArray.js @@ -32,6 +32,6 @@ export default (data, parentSource) => { id: 'id', parentId: parentSource, }) - .map(node => createNode(node, 1)) + .map(node => createNode(node)) .map(node => addParent(node, null)); };