From 7709352f68d1b5623864d5c9a3a4348184938909 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 6 Sep 2023 14:38:28 +0300 Subject: [PATCH] [Library | develop]: [Bug fix] searchDataproviders.service.ts: Added check if "datasourcetype" field exists in record. --- services/searchDataproviders.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) {