Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The bug in defaultResponseInterceptor #229

Open
markb-trustifi opened this issue Dec 8, 2022 · 0 comments
Open

The bug in defaultResponseInterceptor #229

markb-trustifi opened this issue Dec 8, 2022 · 0 comments

Comments

@markb-trustifi
Copy link

markb-trustifi commented Dec 8, 2022

When the response data is a boolean "false", numeric "0" or an empty string the restangular response returns it as an empty object.

configuration.defaultResponseInterceptor = function (data /*, operation, what, url, response, subject */) {

 configuration.defaultResponseInterceptor = function (data /*, operation, what, url, response, subject */) {
    return data || {};
  };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant