We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6813139 commit b946955Copy full SHA for b946955
src/GraphRequest.ts
@@ -512,7 +512,7 @@ export class GraphRequest {
512
}
513
if (oDataQueryNames.indexOf(paramKey) !== -1) {
514
const currentValue = this.urlComponents.oDataQueryParams[paramKey];
515
- const isValueAppendable = (paramKey === "$expand" || paramKey === "$select" || paramKey === "$orderby") && currentValue;
+ const isValueAppendable = currentValue && (paramKey === "$expand" || paramKey === "$select" || paramKey === "$orderby");
516
this.urlComponents.oDataQueryParams[paramKey] = isValueAppendable ? currentValue + "," + paramValue : paramValue;
517
} else {
518
this.urlComponents.otherURLQueryParams[paramKey] = paramValue;
0 commit comments