aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/code
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-01-11 09:11:42 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-01-11 09:30:26 +0100
commit4fc5235cff864d6935921ef0e33549563cb20b88 (patch)
tree2876c7665cc47c3643656533be142ea965997eb8 /server/sonar-web/src/main/js/apps/code
parent292fbbf3fb9631c63b1b60359b452920eb69ce8a (diff)
downloadsonarqube-4fc5235cff864d6935921ef0e33549563cb20b88.tar.gz
sonarqube-4fc5235cff864d6935921ef0e33549563cb20b88.zip
SONAR-7144 fix pinnig from search results
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code')
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/ComponentPin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/components/ComponentPin.js b/server/sonar-web/src/main/js/apps/code/components/ComponentPin.js
index 80382734ffd..793f2e89027 100644
--- a/server/sonar-web/src/main/js/apps/code/components/ComponentPin.js
+++ b/server/sonar-web/src/main/js/apps/code/components/ComponentPin.js
@@ -27,7 +27,7 @@ import { translate } from '../../../helpers/l10n';
const ComponentPin = ({ component }) => {
const handleClick = (e) => {
e.preventDefault();
- Workspace.openComponent({ uuid: component.uuid });
+ Workspace.openComponent({ uuid: component.uuid || component.id });
};
return (