Skip to content

Commit

Permalink
fix category manager initialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey-wu committed May 18, 2024
1 parent 1ee0150 commit 7f73e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/utilities/category-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class CategoryManager {
* @param {string[]} subcategories
* @param {string[]} alternateSubcategories
*/
constructor(categories = Object.keys(SUBCATEGORIES), subcategories = [], alternateSubcategories = []) {
constructor(categories = [], subcategories = [], alternateSubcategories = []) {
this.import(categories, subcategories, alternateSubcategories);
}

Expand All @@ -46,7 +46,7 @@ export default class CategoryManager {
};
}

import(categories = Object.keys(SUBCATEGORIES), subcategories = [], alternateSubcategories = []) {
import(categories = [], subcategories = [], alternateSubcategories = []) {
if (categories.length > 0 && subcategories.length === 0) {
categories.forEach(category => {
SUBCATEGORIES[category].forEach(subcategory => {
Expand Down

0 comments on commit 7f73e3c

Please sign in to comment.