mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
Changed workaround comment for clarification
This commit is contained in:
@@ -73,7 +73,7 @@ export abstract class BaseResponseParsingService {
|
||||
const pageInfo: PageInfo = this.processPageInfo(data);
|
||||
let list = data._embedded;
|
||||
|
||||
// Workaround for inconsistancy in rest response - sometimes page embeds are wrapped in another object
|
||||
// Workaround for inconsistency in rest response. Issue: https://github.com/DSpace/dspace-angular/issues/238
|
||||
if (!Array.isArray(list)) {
|
||||
list = this.flattenSingleKeyObject(list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user