[Library | develop]: searchDataproviders.service.ts: In method "getDataproviderType()", add check for datasourcetype field.
This commit is contained in:
parent
f9dcdd81cc
commit
a7e32a2a65
|
@ -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 '';
|
||||
|
|
Loading…
Reference in New Issue