From c466f8cc7387a6803876e3869ad18a1e8aaffcaf Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 7 Feb 2019 15:17:27 +0300 Subject: [PATCH] Check if ip_addresses exist in the interface --- client/src/install/Setup/Greeting.js | 2 +- client/src/install/Setup/Settings.js | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/client/src/install/Setup/Greeting.js b/client/src/install/Setup/Greeting.js index 4f9a82d6..914d89c8 100644 --- a/client/src/install/Setup/Greeting.js +++ b/client/src/install/Setup/Greeting.js @@ -10,7 +10,7 @@ class Greeting extends Component {

install_welcome_title

-

+

install_welcome_desc

diff --git a/client/src/install/Setup/Settings.js b/client/src/install/Setup/Settings.js index 9fc51c41..cc127117 100644 --- a/client/src/install/Setup/Settings.js +++ b/client/src/install/Setup/Settings.js @@ -30,13 +30,18 @@ const renderInterfaces = (interfaces => ( Object.keys(interfaces).map((item) => { const option = interfaces[item]; const { name } = option; - const ip = getInterfaceIp(option); - return ( - - ); + if (option.ip_addresses && option.ip_addresses.length > 0) { + const ip = getInterfaceIp(option); + + return ( + + ); + } + + return false; }) ));