Merge pull request #3036 from mikezimm/patch-1
add await to super.onInit() in sample
This commit is contained in:
commit
d260ee4a67
|
@ -26,7 +26,7 @@ export default class PnPjsExampleWebPart extends BaseClientSideWebPart<IPnPjsExa
|
|||
protected async onInit(): Promise<void> {
|
||||
this._environmentMessage = this._getEnvironmentMessage();
|
||||
|
||||
super.onInit();
|
||||
await super.onInit();
|
||||
|
||||
//Initialize our _sp object that we can then use in other packages without having to pass around the context.
|
||||
// Check out pnpjsConfig.ts for an example of a project setup file.
|
||||
|
|
Loading…
Reference in New Issue