Skip to content

Commit 62107f0

Browse files
marie-jjleveugle
authored andcommitted
fix(pci.project.instances): check if ip is undefined
MANAGER-3013
1 parent f15ebf9 commit 62107f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/manager/modules/pci/src/projects/project/instances/instances.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ export default class PciProjectInstanceService {
517517
}
518518

519519
getReverseIp({ ipAddresses }) {
520-
const { ip } = find(ipAddresses, { type: 'public', version: 4 });
520+
const ip = get(find(ipAddresses, { type: 'public', version: 4 }), 'ip');
521521
if (ip) {
522522
return this.OvhApiIp.Reverse().v6().query({ ip }).$promise
523523
.then(([ipReverse]) => (ipReverse

0 commit comments

Comments
 (0)