mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-03-05 19:29:48 +00:00
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…
x
Reference in New Issue
Block a user