From 4b8ee9ce83941b0ac2c42469d9bfa0505f5b90c7 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 11 Oct 2018 13:02:14 +0300 Subject: [PATCH] Fix params --- client/src/api/Api.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/api/Api.js b/client/src/api/Api.js index f24d8add..c194ddfa 100644 --- a/client/src/api/Api.js +++ b/client/src/api/Api.js @@ -169,9 +169,7 @@ export default class Api { addFilter(url, name) { const { path, method } = this.FILTERING_ADD_FILTER; - const urlParameter = 'url'; - const nameParameter = 'name'; - const requestBody = `${urlParameter}=${url}&${nameParameter}=${name}`; + const requestBody = `url=${url}&name=${name}`; const config = { data: requestBody, header: { 'Content-Type': 'text/plain' },