Commit c9684059 authored by Angelina Filippova's avatar Angelina Filippova

Merge branch 'fix-setting-error' into 'master'

Fixed there can't be submitted settings

See merge request !28
parents b573d6bd b37aaac9
Pipeline #15994 passed with stages
in 6 minutes and 26 seconds
......@@ -141,7 +141,7 @@ export const wrapConfig = settings => {
? settings[config]['value']
: Object.keys(settings[config]).reduce((acc, settingName) => {
const data = settings[config][settingName]
if (data === '') {
if (data === null || data === '') {
return acc
} else if (key === ':rate_limit') {
return [...acc, { 'tuple': [`:${settingName}`, data] }]
......@@ -164,7 +164,7 @@ export const wrapConfig = settings => {
const wrapNestedTuples = setting => {
return Object.keys(setting).reduce((acc, settingName) => {
const data = setting[settingName]
if (data === '') {
if (data === null || data === '') {
return acc
} else if (settingName === 'ip') {
const ip = data.split('.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment