Merge branch 'develop' of code-repo.d4science.org:MaDgIK/openaire-library into develop
This commit is contained in:
commit
d6cc4d4e42
|
@ -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