Skip to content

Commit

Permalink
fix: ensure unique IDs by default
Browse files Browse the repository at this point in the history
Fix uniqueids bug
  • Loading branch information
gajus committed Jun 20, 2018
2 parents 4fbf2b4 + 3288e79 commit fd67a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ Contents.articles = (elements, articleName = Contents.articleName, articleId = C
* @param {Array} uniqueIDpool
* @return {Array}
*/
Contents.tree = (articles, makeUniqueIDs, uniqueIDpool) => {
Contents.tree = (articles, makeUniqueIDs = true, uniqueIDpool = []) => {
let lastNode,
rootNode,
tree;
Expand Down

0 comments on commit fd67a51

Please sign in to comment.