this.setResponse(resp);
});
- this.subs = this.rbdMirroringService.subscribeSummary((data: any) => {
+ this.subs = this.rbdMirroringService.subscribeSummary((data) => {
this.peerExists = false;
- if (!data) {
- return;
- }
-
const poolData = data.content_data.pools;
const pool = poolData.find((o: any) => this.poolName === o['name']);
this.peerExists = pool && pool['peer_uuids'].length;