diff --git a/shell/components/formatter/InternalExternalIP.vue b/shell/components/formatter/InternalExternalIP.vue
index 9a390b5c91..398030b4ec 100644
--- a/shell/components/formatter/InternalExternalIP.vue
+++ b/shell/components/formatter/InternalExternalIP.vue
@@ -37,13 +37,13 @@ export default {
-
-
+ /
-
- / {{ t('tableHeaders.internalIpSameAsExternal') }}
+
+ {{ t('tableHeaders.internalIpSameAsExternal') }}
- / {
return type === ADDRESSES.INTERNAL_IP;
- });
+ })?.address;
if (internal) {
- return internal.address;
+ return internal;
}
return this.t('generic.none');
@@ -257,10 +259,10 @@ export default class CapiMachine extends SteveModel {
get externalIp() {
const external = this.status?.addresses?.find(({ type }) => {
return type === ADDRESSES.EXTERNAL_IP;
- });
+ })?.address;
if (external) {
- return external.address;
+ return external;
}
return this.t('generic.none');
diff --git a/shell/models/management.cattle.io.node.js b/shell/models/management.cattle.io.node.js
index a4ff295840..b287b6317a 100644
--- a/shell/models/management.cattle.io.node.js
+++ b/shell/models/management.cattle.io.node.js
@@ -126,8 +126,8 @@ export default class MgmtNode extends HybridModel {
}
get internalIp() {
- // This shows in the IP address column for the list of
- // nodes in the cluster detail page of Cluster Management.
+ // This shows in the IP address column for RKE1 nodes in the
+ // list of nodes in the cluster detail page of Cluster Management.
const internal = this.status?.addresses?.find(({ type }) => {
return type === ADDRESSES.INTERNAL_IP;