Check if ip_addresses exist in the interface
This commit is contained in:
parent
f9d1948f6a
commit
c466f8cc73
|
@ -10,7 +10,7 @@ class Greeting extends Component {
|
||||||
<h1 className="setup__title">
|
<h1 className="setup__title">
|
||||||
<Trans>install_welcome_title</Trans>
|
<Trans>install_welcome_title</Trans>
|
||||||
</h1>
|
</h1>
|
||||||
<p className="setup__desc">
|
<p className="setup__desc text-center">
|
||||||
<Trans>install_welcome_desc</Trans>
|
<Trans>install_welcome_desc</Trans>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -30,6 +30,8 @@ const renderInterfaces = (interfaces => (
|
||||||
Object.keys(interfaces).map((item) => {
|
Object.keys(interfaces).map((item) => {
|
||||||
const option = interfaces[item];
|
const option = interfaces[item];
|
||||||
const { name } = option;
|
const { name } = option;
|
||||||
|
|
||||||
|
if (option.ip_addresses && option.ip_addresses.length > 0) {
|
||||||
const ip = getInterfaceIp(option);
|
const ip = getInterfaceIp(option);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -37,6 +39,9 @@ const renderInterfaces = (interfaces => (
|
||||||
{name} - {ip}
|
{name} - {ip}
|
||||||
</option>
|
</option>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
})
|
})
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue