Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit e4c7d7e

Browse files
fix bug in webs add when using the new web immediately in a batch, removed typedoc from package.json
1 parent e0b9047 commit e4c7d7e

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"gulp-sourcemaps": "^1.9.1",
2828
"gulp-spsave": "^3.0.0",
2929
"gulp-tslint": "^6.0.2",
30-
"gulp-typedoc": "^2.0.0",
3130
"gulp-typescript": "^3.0.2",
3231
"gulp-util": "^3.0.7",
3332
"jsdoc": "^3.4.3",

src/sharepoint/webs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class Webs extends QueryableCollection {
6363
return q.post({ body: postBody }).then((data) => {
6464
return {
6565
data: data,
66-
web: new Web(extractOdataId(data), ""),
66+
web: new Web(extractOdataId(data).replace(/_api\/web\/?/i, "")),
6767
};
6868
});
6969
}

0 commit comments

Comments
 (0)