From 13cdb49856c3fa7e0bbbf4f535b6cc2c65bf5f32 Mon Sep 17 00:00:00 2001 From: MegaPixel Date: Sun, 25 Apr 2021 21:35:28 +0545 Subject: [PATCH] :bug: Mistake in filters length (#367) --- src/utils/AudioFilters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/AudioFilters.ts b/src/utils/AudioFilters.ts index 37b52da..ff21b68 100644 --- a/src/utils/AudioFilters.ts +++ b/src/utils/AudioFilters.ts @@ -70,11 +70,11 @@ const FilterList = { }, get names() { - return Object.keys(this).filter((p) => ['names', 'length'].includes(p) && typeof this[p as FiltersName] !== 'function'); + return Object.keys(this).filter((p) => !['names', 'length'].includes(p) && typeof this[p as FiltersName] !== 'function'); }, get length() { - return Object.keys(this).filter((p) => ['names', 'length'].includes(p) && typeof this[p as FiltersName] !== 'function').length; + return Object.keys(this).filter((p) => !['names', 'length'].includes(p) && typeof this[p as FiltersName] !== 'function').length; }, toString() {