]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7144 fix pinnig from search results
authorStas Vilchik <vilchiks@gmail.com>
Mon, 11 Jan 2016 08:11:42 +0000 (09:11 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 11 Jan 2016 08:30:26 +0000 (09:30 +0100)
server/sonar-web/src/main/js/apps/code/components/ComponentPin.js

index 80382734ffd753814d5a7f6a676d73ab0904c30b..793f2e89027260d4c1eafeaab8c44615ff5f82ab 100644 (file)
@@ -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 (