fix: fix download floating IP all data error

fix download floating IP all data error

Closes-Bug: #1957862
Change-Id: I1450e963ac7b7afe9add94d18d914aedb8f715b5
This commit is contained in:
yangao 2022-04-28 13:11:12 +08:00 committed by Boxiang Zhu
parent d472f41913
commit d69bbacca7

View File

@ -212,7 +212,7 @@ export class FloatingIps extends Base {
return resource_name || '';
},
stringify: (resource_name, record) => {
if (!resource_name && record.port_forwardings.length !== 0) {
if (!resource_name && (record.port_forwardings || []).length !== 0) {
const ret = record.port_forwardings
.sort((a, b) => a.external_port - b.external_port)
.map(