From f5705323ad5ba415d9919f2f3cd1f362beb6efb8 Mon Sep 17 00:00:00 2001 From: Slava Olishevko Date: Wed, 11 Oct 2023 17:08:59 +0300 Subject: [PATCH] fix: fix request bug --- sources/models/appliedFilters.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/models/appliedFilters.js b/sources/models/appliedFilters.js index b89012f..f242d87 100644 --- a/sources/models/appliedFilters.js +++ b/sources/models/appliedFilters.js @@ -59,10 +59,12 @@ function prepareDataForList() { function processNewFilters(data) { if (Array.isArray(data)) { data.forEach((item) => { + // eslint-disable-next-line no-use-before-define processNewFilter(item); }); } else if (data) { + // eslint-disable-next-line no-use-before-define processNewFilter(data); } } @@ -210,7 +212,7 @@ function _prepareRangeCondition(filter, result) { value: `[${currentFilterValue.from} TO ${currentFilterValue.to}}`, operator: "OR", openingBracket: "", - closingBracket: ")", + closingBracket: "", type: filter.datatype }); }