diff --git a/react/src/components/dashboard/settings/settings.js b/react/src/components/dashboard/settings/settings.js index aa5e103..ca777af 100644 --- a/react/src/components/dashboard/settings/settings.js +++ b/react/src/components/dashboard/settings/settings.js @@ -487,9 +487,16 @@ class Settings extends React.Component { let __cliResponseParsed; if (typeof _cliResponseParsed !== 'object' && + typeof _cliResponseParsed !== 'number' && + _cliResponseParsed !== 'wrong cli string format' && _cliResponseParsed.indexOf('\r\n') > -1) { _cliResponseParsed = _cliResponseParsed.split('\r\n') ; - } else if (typeof _cliResponseParsed !== 'object' && _cliResponseParsed.indexOf('\n') > -1) { + } else if ( + typeof _cliResponseParsed !== 'object' && + typeof _cliResponseParsed !== 'number' && + _cliResponseParsed !== 'wrong cli string format' && + _cliResponseParsed.indexOf('\n') > -1 + ) { __cliResponseParsed = _cliResponseParsed.split('\n') ; } else { __cliResponseParsed = _cliResponseParsed; @@ -497,7 +504,8 @@ class Settings extends React.Component { let _items = []; - if (__cliResponseParsed.length) { + if (__cliResponseParsed.length && + __cliResponseParsed !== 'wrong cli string format') { for (let i = 0; i < __cliResponseParsed.length; i++) { _items.push(