From ad7d57b9f310b07d28d0fadb4fd91c63ad631598 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Mon, 5 Apr 2021 13:25:11 +0200 Subject: [PATCH] M #~: Fix minor (#1063) --- .../public/app/tabs/vms-tab/panels/network.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/network.js b/src/sunstone/public/app/tabs/vms-tab/panels/network.js index efd4b39491..82230d8236 100644 --- a/src/sunstone/public/app/tabs/vms-tab/panels/network.js +++ b/src/sunstone/public/app/tabs/vms-tab/panels/network.js @@ -441,25 +441,28 @@ define(function(require) { var new_div = "
" + "" + "- Alias-" + this.ALIAS_ID + ":" + ""; - if(this.IP !== undefined) { + if (this.IP !== undefined) { new_div += "   " + this.IP; } - if(String(this.EXTERNAL_IP).toLowerCase() !== 'yes') { + if ( + this.EXTERNAL_IP !== undefined && + !['yes', 'no'].includes(String(this.EXTERNAL_IP).toLowerCase()) + ) { new_div += "   " + this.EXTERNAL_IP; } - if(this.IP6 !== undefined) { + if (this.IP6 !== undefined) { new_div += "   " + this.IP6; } new_div += "   " + this.MAC; - if(this.IP6_ULA !== undefined) { + if (this.IP6_ULA !== undefined) { new_div += "   ULA " + this.IP6_ULA; } - if(this.IP6_GLOBAL !== undefined) { + if (this.IP6_GLOBAL !== undefined) { new_div += "   Global " + this.IP6_GLOBAL; }