aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/component/components/App.tsx
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-03-02 16:24:37 +0100
committerGitHub <noreply@github.com>2018-03-02 16:24:37 +0100
commit299cebedac5ef4a6a17dd18782c2b1a2a79f08d5 (patch)
tree357d7b0ebe5fe686b9f2ea35507a2fb58bce12a0 /server/sonar-web/src/main/js/apps/component/components/App.tsx
parent2d98999918574c56056c21f9c4791476d644a041 (diff)
downloadsonarqube-299cebedac5ef4a6a17dd18782c2b1a2a79f08d5.tar.gz
sonarqube-299cebedac5ef4a6a17dd18782c2b1a2a79f08d5.zip
rewrite remaining popups in react (#3109)
* extract baseFontFamily * rewrite favorites store in ts * add new types and change existing ones * rewrite SourceViewer helpers in ts * rewrite SourceViewer in ts and its popups in react * drop popups * fix iterating over nodelist * fix quality flaws
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component/components/App.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/component/components/App.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/component/components/App.tsx b/server/sonar-web/src/main/js/apps/component/components/App.tsx
index 06d009a07fa..96ff380b906 100644
--- a/server/sonar-web/src/main/js/apps/component/components/App.tsx
+++ b/server/sonar-web/src/main/js/apps/component/components/App.tsx
@@ -47,7 +47,7 @@ export default class App extends React.PureComponent<Props> {
render() {
const { branch, id, line } = this.props.location.query;
- const finalLine = line != null ? Number(line) : null;
+ const finalLine = line ? Number(line) : undefined;
return (
<div className="page page-limited">