Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
gallayl committed Jul 12, 2017
2 parents e71d2e2 + 56483d7 commit 9ce5b77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "sn-client-js",
"version": "2.0.0",
"version": "2.0.1",
"description": "A JavaScript client for Sense/Net ECM that makes it easy to use the REST API of the Content Repository.",
"main": "dist/src/SN.js",
"files": [
Expand Down
6 changes: 4 additions & 2 deletions src/Content.ts
Expand Up @@ -465,8 +465,10 @@ export class Content {
if (!this.Path) {
throw new Error('No path specified');
}
return this.repository.Content.Fetch( new ODataRequestOptions({
path: this.Path

return this.repository.Content.Fetch(new ODataRequestOptions({
path: this.Path,
params: options
}), Content).map(resp => {
return resp.d.results.map(c => Content.HandleLoadedContent(Content, c, this.repository));
});
Expand Down
2 changes: 1 addition & 1 deletion src/HttpProviders/RxAjaxHttpProvider.ts
Expand Up @@ -30,7 +30,7 @@ export class RxAjaxHttpProvider extends BaseHttpProvider {

req.onload = () => {
try {
sub.next(JSON.parse(req.responseText));
sub.next(req.responseText && JSON.parse(req.responseText) || null);
} catch (error) {
sub.error(error);
}
Expand Down

0 comments on commit 9ce5b77

Please sign in to comment.