diff --git a/services/searchDataproviders.service.ts b/services/searchDataproviders.service.ts index a3c71083..af05a7f1 100644 --- a/services/searchDataproviders.service.ts +++ b/services/searchDataproviders.service.ts @@ -135,7 +135,7 @@ export class SearchDataprovidersService { // result.description = result.description.substring(0, this.sizeOfDescription) + "..."; // } - let typeid: string = resData['datasourcetype'].classid; + let typeid: string = resData['datasourcetype'] && resData['datasourcetype'].classid; if(typeid != "entityregistry" && typeid != "entityregistry::projects" && typeid != "entityregistry::repositories") { if(resData.hasOwnProperty('accessinfopackage')) {