Skip to content

Error when using DSProvider.defaults #4

Description

@auser

We're getting an error when using DSProvider.defaults in our app with the error:

TypeError: Cannot set property 'deserialize' of undefined for the line:

DSProvider.defaults.deserialize = function (resourceName, data) {
    // extract data from custom payload format
    if (data && data.data) {
       return data.data[resourceName] ? data.data[resourceName] : data.data;
    } else{
        return data;
    }
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions