Skip to content

Commit

Permalink
Fixed odata.metadata not recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
devnixs committed May 15, 2016
1 parent 76e1ffb commit 649734f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/odataresources.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
data.count = data['@odata.count'];
}

if (data && (angular.isString(data['@odata.context']) || angular.isString(data['odata.context']) ) && data.value && angular.isArray(data.value)) {
if (data && (angular.isString(data['@odata.context']) || angular.isString(data['odata.metadata']) ) && data.value && angular.isArray(data.value)) {
var fullObject = data;
data = data.value;
for (var property in fullObject) {
Expand Down

0 comments on commit 649734f

Please sign in to comment.