From 5496f370b4926f24ef1e129110c8fb52a7a0c443 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Wed, 24 Jul 2019 18:33:48 -0400 Subject: [PATCH] fix: support cluster-info responses without identity and uptime data --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 4fb11d2b..2cf2338d 100755 --- a/src/App.js +++ b/src/App.js @@ -148,9 +148,9 @@ class App extends Component { let newG = {...g}; let vote = voting.find(x => x.nodePubkey === newG.pubkey); newG.voteAccount = vote; - let identity = identities.find(v => v.pubkey === newG.pubkey); + let identity = (identities || []).find(v => v.pubkey === newG.pubkey); newG.identity = identity; - let uptime = vote && uptimes.find(v => v.pubkey === vote.pubkey); + let uptime = vote && (uptimes || []).find(v => v.pubkey === vote.pubkey); newG.uptime = uptime; return newG;