Changed workaround comment for clarification

This commit is contained in:
LotteHofstede
2018-05-25 13:05:47 +02:00
committed by GitHub
parent 0bcc8ee007
commit a99402c6b6

View File

@@ -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);
}