aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectActivity
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-11-27 14:13:26 +0100
committerSonarTech <sonartech@sonarsource.com>2018-12-07 20:21:05 +0100
commit8dea56b4c70d09fc069add79ab0617bf6bb0e16a (patch)
tree5c49ebbfdb3a82d09682c33fd27bce4f04e1f00c /server/sonar-web/src/main/js/apps/projectActivity
parent5aedc697b7bba9e80a97ab86913b61ce662563a8 (diff)
downloadsonarqube-8dea56b4c70d09fc069add79ab0617bf6bb0e16a.tar.gz
sonarqube-8dea56b4c70d09fc069add79ab0617bf6bb0e16a.zip
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
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectActivity')
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltips.tsx3
1 files changed, 2 insertions, 1 deletions
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<Props> {
left -= TOOLTIP_WIDTH;
placement = PopupPlacement.LeftTop;
}
- const tooltipContent = this.renderContent().filter(Boolean);
+ const tooltipContent = this.renderContent().filter(isDefined);
const addSeparator = tooltipContent.length > 0;
return (
<Popup