Fixed bug where categories selection logic had an out of range exception

This commit is contained in:
Isaac Abadi
2021-01-28 22:11:04 -05:00
parent 00a0ab460b
commit 3f9314a0c3

View File

@@ -48,7 +48,7 @@ async function categorize(file_jsons) {
for (let i = 0; i < file_jsons.length; i++) {
const file_json = file_jsons[i];
for (let j = 0; j < categories.length; j++) {
const category = categories[i];
const category = categories[j];
const rules = category['rules'];
// if rules for current category apply, then that is the selected category