]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-10552 Allow empty description of plugins in marketplace
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Fri, 6 Apr 2018 14:19:13 +0000 (16:19 +0200)
committerSonarTech <sonartech@sonarsource.com>
Fri, 6 Apr 2018 18:21:53 +0000 (20:21 +0200)
server/sonar-web/src/main/js/api/plugins.ts
server/sonar-web/src/main/js/apps/marketplace/utils.ts

index 0bc8cc48388e5e5921b981c499bc9742eaa2a834..8d98b04de20ab827ec71ca57c815a7fd4bba0cef 100644 (file)
@@ -25,7 +25,7 @@ export interface Plugin {
   key: string;
   name: string;
   category?: string;
-  description: string;
+  description?: string;
   editionBundled?: boolean;
   license?: string;
   organizationName?: string;
index 28976843ac8f2de2f24a7d942786c49af2e39b80..690b687312110da9a297305da5354cdc153e1c12 100644 (file)
@@ -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)
     );
   });