File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -174,12 +174,18 @@ export function getManageChannelsUrl() {
174174} 
175175
176176export  function  dataSourceFilterFn ( dataSource )  { 
177-   const  dataSourceVersion  =  dataSource ?. attributes ?. dataSourceVersion  ||  '' ; 
178-   const  installedPlugins  =  dataSource ?. attributes ?. installedPlugins  ||  [ ] ; 
179-   return  ( 
180-     semver . satisfies ( dataSourceVersion ,  pluginManifest . supportedOSDataSourceVersions )  && 
181-     pluginManifest . requiredOSDataSourcePlugins . every ( ( plugin )  =>  installedPlugins . includes ( plugin ) ) 
182-   ) ; 
177+   try  { 
178+     const  dataSourceVersion  =  dataSource ?. attributes ?. dataSourceVersion  ||  '' ; 
179+     const  installedPlugins  =  dataSource ?. attributes ?. installedPlugins  ||  [ ] ; 
180+     return  ( 
181+       pluginManifest . requiredOSDataSourcePlugins . every ( ( plugin )  => 
182+         installedPlugins . includes ( plugin ) 
183+       )  &&  semver . satisfies ( dataSourceVersion ,  pluginManifest . supportedOSDataSourceVersions ) 
184+     ) ; 
185+   }  catch  ( error )  { 
186+     // Filter out invalid data source 
187+     return  false ; 
188+   } 
183189} 
184190
185191export  function  getSeverityText ( severity )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments