Skip to content

Automatic fetched data is not being processed #8

@sveba

Description

@sveba

Hi Guy,

I have another one :)

After automatic fetching data there is the usual "_embedded" attribute in it and not the "_embeddedItems" attribute.

I researched a little bit in the code and found out that the fetched data is actually not being processed. This is change, which fixes this issue.
Line 107:

if (recursive) {
   return processData(responseData.data, fetchLinkNames, true).then(function (processedData) {
        data[key] = processedData;
   });
} else {
    return processData(responseData.data).then(function (processedData) {
       data[key] = processedData;
    });
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions