aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-01-13 17:19:00 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-01-13 18:29:03 +0100
commitde182d525dfb298a9f98f808a776962ee3e350c1 (patch)
treed15ce26ad01091464c78407844cc96d0e92d8e59 /server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js
parent80e288f9dca1ae2506fb7f9ab69deace0f565078 (diff)
downloadsonarqube-de182d525dfb298a9f98f808a776962ee3e350c1.tar.gz
sonarqube-de182d525dfb298a9f98f808a776962ee3e350c1.zip
SONAR-8581 Add IT to test PageDefinition API
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js')
-rw-r--r--server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js b/server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js
index c249b94b1c7..7810a25b93f 100644
--- a/server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js
+++ b/server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js
@@ -27,7 +27,7 @@ import { addGlobalErrorMessage } from '../../../store/globalMessages/duck';
type Props = {
component: {
- extensions: Array<{ id: string }>
+ extensions: Array<{ key: string }>
},
location: { query: { id: string } },
params: {
@@ -42,7 +42,7 @@ class ProjectPageExtension extends React.Component {
render () {
const { extensionKey, pluginKey } = this.props.params;
const { component } = this.props;
- const extension = component.extensions.find(p => p.id === `${pluginKey}/${extensionKey}`);
+ const extension = component.extensions.find(p => p.key === `${pluginKey}/${extensionKey}`);
return extension ? (
<Extension extension={extension} options={{ component }}/>
) : (