From 243540fce06aa7045d99249bac4fe278d9139259 Mon Sep 17 00:00:00 2001 From: Andrew Janian Date: Wed, 30 Sep 2020 14:24:35 -0400 Subject: [PATCH] fix const issue in categories.js --- static/categories.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/categories.js b/static/categories.js index 5a7ccd3..dbada08 100644 --- a/static/categories.js +++ b/static/categories.js @@ -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; @@ -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 = []; }