Skip to content

Commit

Permalink
Fix selection for select like select=Object/*,ExpandObject/*
Browse files Browse the repository at this point in the history
  • Loading branch information
datze authored Nov 14, 2022
1 parent 0f73aa7 commit 423dcc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odata-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const reduceEntityToSelect = function(entity, selectedProperties = []) {
return Object.entries(entity).reduce(function(result, [key, value]) {
const isNavProperty = isNavigationProperty(key);
if('__metadata' === key || selectedProperties.includes(key) ||
(selectedProperties.includes('*')) && !isNavProperty) {
(selectedProperties.filter(a => a.includes("*")).length > 0) && !isNavProperty){
result[key] = value;
}
else if(isNavProperty) {
Expand Down

0 comments on commit 423dcc3

Please sign in to comment.