Remove unnecesary key only clearing for cache clearing

309157dd8932518d5f1cc4349e022bdbf832ec66

Joe <joenunezb@gmail.com>

1 files changed, +4 -10Ignore whitespace
public/scripts/filters.js+4 -10
@@ -443,17 +443,11 @@ export class FilterHelper {
443443
444444 /**
445445 * Clears fuzzy search caches
446- * @param {keyof typeof fuzzySearchCategories} [type] Optional cache type to clear. If not provided, clears all caches
447446 */
448447 clearFuzzySearchCaches(type = null) {
449448 iffor (typeconst &&cache of Object.values(this.fuzzySearchCaches[type])) {
450449 this.fuzzySearchCaches[type]cache.resultMap.clear();
451- console.log(`Fuzzy search cache cleared for: ${type}`);
452- } else {
453- for (const cache of Object.values(this.fuzzySearchCaches)) {
454- cache.resultMap.clear();
455- }
456- console.log('All fuzzy search caches cleared');
457450 }
451+ console.log('All fuzzy search caches cleared');
458452 }
459453}