mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #624 from atmire/cache-behavior-unknown-type
Cache behavior for unknown type
This commit is contained in:
@@ -57,7 +57,7 @@ export abstract class BaseResponseParsingService {
|
||||
.filter((property) => data._embedded.hasOwnProperty(property))
|
||||
.forEach((property) => {
|
||||
const parsedObj = this.process<ObjectDomain>(data._embedded[property], request);
|
||||
if (this.shouldDirectlyAttachEmbeds && isNotEmpty(parsedObj)) {
|
||||
if (hasValue(object) && this.shouldDirectlyAttachEmbeds && isNotEmpty(parsedObj)) {
|
||||
if (isRestPaginatedList(data._embedded[property])) {
|
||||
object[property] = parsedObj;
|
||||
object[property].page = parsedObj.page.map((obj) => this.retrieveObjectOrUrl(obj));
|
||||
|
Reference in New Issue
Block a user