diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2017-01-13 17:19:00 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2017-01-13 18:29:03 +0100 |
commit | de182d525dfb298a9f98f808a776962ee3e350c1 (patch) | |
tree | d15ce26ad01091464c78407844cc96d0e92d8e59 /server/sonar-web/src/main/js/app/components/extensions/ProjectPageExtension.js | |
parent | 80e288f9dca1ae2506fb7f9ab69deace0f565078 (diff) | |
download | sonarqube-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.js | 4 |
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 }}/> ) : ( |