Skip to content

Commit

Permalink
Fixed a null exception when calling the webpart is edit for classic i…
Browse files Browse the repository at this point in the history
…n modern.
  • Loading branch information
gunjandatta committed Aug 27, 2024
1 parent 453b3d1 commit fd2b6b3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/gd-sprest.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gd-sprest.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-sprest",
"version": "8.1.7",
"version": "8.1.8",
"description": "An easy way to develop against the SharePoint REST API.",
"author": "Gunjan Datta <[email protected]> (https://gunjandatta.github.io)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/helper/webpart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class _WebPart {
}

// Get the form
let form = document.forms[MSOWebPartPageFormName];
let form = MSOWebPartPageFormName ? document.forms[MSOWebPartPageFormName] : null;
if (form) {
// Get the wiki page mode
let wikiPageMode: any = form._wikiPageMode ? form._wikiPageMode.value : null;
Expand Down
2 changes: 1 addition & 1 deletion src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { IREST } from "../@types";
* SharePoint REST Library
*/
export const $REST: IREST = {
__ver: 8.17,
__ver: 8.18,
AppContext: (siteUrl: string) => { return Lib.Site.getAppContext(siteUrl); },
Apps: Lib.Apps,
ContextInfo: Lib.ContextInfo,
Expand Down

0 comments on commit fd2b6b3

Please sign in to comment.