[Library | develop]: [Bug fix] searchDataproviders.service.ts: Added check if "datasourcetype" field exists in record.

This commit is contained in:
Konstantina Galouni 2023-09-06 14:38:28 +03:00
parent 35d287511b
commit 7709352f68
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {