aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-04-06 16:19:13 +0200
committerSonarTech <sonartech@sonarsource.com>2018-04-06 20:21:53 +0200
commit8f6fd0a83ebd1d1ea5fc8772502172a2bd75cce8 (patch)
treec6aa066f1e358fee25dd81df2b399ee38df17054 /server/sonar-web
parent8e548228c10184d3a9eb284f0ab0a6399c07684f (diff)
downloadsonarqube-8f6fd0a83ebd1d1ea5fc8772502172a2bd75cce8.tar.gz
sonarqube-8f6fd0a83ebd1d1ea5fc8772502172a2bd75cce8.zip
SONAR-10552 Allow empty description of plugins in marketplace
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/api/plugins.ts2
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/utils.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/plugins.ts b/server/sonar-web/src/main/js/api/plugins.ts
index 0bc8cc48388..8d98b04de20 100644
--- a/server/sonar-web/src/main/js/api/plugins.ts
+++ b/server/sonar-web/src/main/js/api/plugins.ts
@@ -25,7 +25,7 @@ export interface Plugin {
key: string;
name: string;
category?: string;
- description: string;
+ description?: string;
editionBundled?: boolean;
license?: string;
organizationName?: string;
diff --git a/server/sonar-web/src/main/js/apps/marketplace/utils.ts b/server/sonar-web/src/main/js/apps/marketplace/utils.ts
index 28976843ac8..690b6873121 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/utils.ts
+++ b/server/sonar-web/src/main/js/apps/marketplace/utils.ts
@@ -44,7 +44,7 @@ export function filterPlugins(plugins: Plugin[], search: string): Plugin[] {
return plugins.filter(plugin => {
return (
plugin.name.toLowerCase().includes(s) ||
- plugin.description.toLowerCase().includes(s) ||
+ (plugin.description || '').toLowerCase().includes(s) ||
(plugin.category || '').toLowerCase().includes(s)
);
});