From 8dea56b4c70d09fc069add79ab0617bf6bb0e16a Mon Sep 17 00:00:00 2001 From: Grégoire Aubert Date: Tue, 27 Nov 2018 14:13:26 +0100 Subject: SONARCLOUD-176 Allow upgrading to paid organization when provisioning projects * Update UpgradeOrganizationBox component with new cardPlan component * Display upgrade box only when needed * Introduce isDefined type guard * Update repositories selection workflow --- .../src/main/js/apps/projectActivity/components/GraphsTooltips.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/sonar-web/src/main/js/apps/projectActivity') diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltips.tsx b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltips.tsx index b8542ee8be4..bb553eea77b 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltips.tsx +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltips.tsx @@ -26,6 +26,7 @@ import GraphsTooltipsContentIssues from './GraphsTooltipsContentIssues'; import { DEFAULT_GRAPH, MeasureHistory, Serie } from '../utils'; import DateTimeFormatter from '../../../components/intl/DateTimeFormatter'; import { Popup, PopupPlacement } from '../../../components/ui/popups'; +import { isDefined } from '../../../helpers/types'; interface Props { events: T.AnalysisEvent[]; @@ -85,7 +86,7 @@ export default class GraphsTooltips extends React.PureComponent { left -= TOOLTIP_WIDTH; placement = PopupPlacement.LeftTop; } - const tooltipContent = this.renderContent().filter(Boolean); + const tooltipContent = this.renderContent().filter(isDefined); const addSeparator = tooltipContent.length > 0; return (