Skip to content

Commit

Permalink
fix const issue in categories.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanian committed Sep 30, 2020
1 parent 08a90c2 commit 243540f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function handleCategory(parentEssential, essentialMap, category, depth) {
console.error(categoryId + " already exists in the map for categoryName " + categoryName);
}

const essential = category.essential;
let essential = category.essential;

if (!essential) {
essential = parentEssential;
Expand All @@ -28,7 +28,7 @@ function handleCategory(parentEssential, essentialMap, category, depth) {

essentialMap.set(categoryId, essential);

const subcategories = category.categories;
let subcategories = category.categories;
if (!subcategories) {
subcategories = [];
}
Expand Down

0 comments on commit 243540f

Please sign in to comment.