From 10139bc5270f438f11722da63249a9cf96c1f687 Mon Sep 17 00:00:00 2001 From: Annika Hannig Date: Fri, 9 Jul 2021 15:42:22 +0200 Subject: [PATCH] fixes #57, do not render indicator when no reject candidates are configured --- client/components/routeservers/routes/route/flags.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/components/routeservers/routes/route/flags.jsx b/client/components/routeservers/routes/route/flags.jsx index d4e3f0a..15dbd18 100644 --- a/client/components/routeservers/routes/route/flags.jsx +++ b/client/components/routeservers/routes/route/flags.jsx @@ -158,6 +158,9 @@ export const RpkiIndicator = connect( class _RejectCandidateIndicator extends React.Component { render() { + if (!this.props.candidateCommunities) { + return null; + } if (!isRejectCandidate(this.props.candidateCommunities, this.props.route)) { return null; }