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

Commit

Permalink
fix bug in webs add when using the new web immediately in a batch, re…
Browse files Browse the repository at this point in the history
…moved typedoc from package.json
  • Loading branch information
patrick-rodgers committed Jan 10, 2017
1 parent e0b9047 commit e4c7d7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"gulp-sourcemaps": "^1.9.1",
"gulp-spsave": "^3.0.0",
"gulp-tslint": "^6.0.2",
"gulp-typedoc": "^2.0.0",
"gulp-typescript": "^3.0.2",
"gulp-util": "^3.0.7",
"jsdoc": "^3.4.3",
Expand Down
2 changes: 1 addition & 1 deletion src/sharepoint/webs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Webs extends QueryableCollection {
return q.post({ body: postBody }).then((data) => {
return {
data: data,
web: new Web(extractOdataId(data), ""),
web: new Web(extractOdataId(data).replace(/_api\/web\/?/i, "")),
};
});
}
Expand Down

0 comments on commit e4c7d7e

Please sign in to comment.