Merge pull request #3036 from mikezimm/patch-1

add await to super.onInit() in sample
This commit is contained in:
Paolo Pialorsi 2022-11-07 17:50:27 +01:00 committed by GitHub
commit d260ee4a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.