From: Stas Vilchik Date: Wed, 2 Jan 2019 14:54:58 +0000 (+0100) Subject: avoid passing null values to SeverityHelper X-Git-Tag: 7.6~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba01aadcb02629042d8378473a9726d13679a938;p=sonarqube.git avoid passing null values to SeverityHelper --- diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx index 629c8bf6c1f..acbb45c981d 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangesList.tsx @@ -26,12 +26,17 @@ interface Props { } export default function ChangesList({ changes }: Props) { + const renderSeverity = (key: string) => { + const severity = changes[key]; + return severity ? : null; + }; + return (