[Library | develop]: searchDataproviders.service.ts: In method "getDataproviderType()", add check for datasourcetype field.

This commit is contained in:
Konstantina Galouni 2023-07-19 17:38:19 +03:00
parent f9dcdd81cc
commit a7e32a2a65
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ export class SearchDataprovidersService {
return subjects;
}
getDataproviderType(resData: any): string {
if(resData['datasourcetype'].hasOwnProperty("classname")) {
if(resData.hasOwnProperty('datasourcetype') && resData['datasourcetype'].hasOwnProperty("classname")) {
return resData['datasourcetype'].classname;
} else {
return '';