commit
c21a343e93
|
@ -10,7 +10,7 @@
|
|||
"This web part displays a sidebar that allows users to provide feedback on various sections of your site."
|
||||
],
|
||||
"creationDateTime": "2022-09-14",
|
||||
"updateDateTime": "2022-09-14",
|
||||
"updateDateTime": "2023-01-20",
|
||||
"products": [
|
||||
"SharePoint"
|
||||
],
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"@microsoft/sp-property-pane": "1.15.2",
|
||||
"@microsoft/sp-webpart-base": "1.15.2",
|
||||
"@pnp/logging": "^3.6.0",
|
||||
"@pnp/sp": "^3.6.0",
|
||||
"@pnp/sp": "^3.11.0",
|
||||
"clsx": "^1.2.1",
|
||||
"office-ui-fabric-react": "7.185.7",
|
||||
"react": "16.13.1",
|
||||
|
|
|
@ -9,7 +9,7 @@ import "@pnp/sp/batching";
|
|||
let _sp: SPFI = null;
|
||||
|
||||
export const getSP = (context?: WebPartContext): SPFI => {
|
||||
if (_sp === null && context !== null) {
|
||||
if (context != null) {
|
||||
_sp = spfi().using(SPFx(context)).using(PnPLogging(LogLevel.Warning));
|
||||
}
|
||||
return _sp;
|
||||
|
|
Loading…
Reference in New Issue