We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93257e commit 85d8f8eCopy full SHA for 85d8f8e
docs/spfx/web-parts/get-started/connect-to-sharepoint.md
@@ -207,8 +207,9 @@ Open the `HelloWorldWebPart` class.
207
</ul>`;
208
});
209
210
- const listContainer: Element = this.domElement.querySelector('#spListContainer');
211
- listContainer.innerHTML = html;
+ if(this.domElement.querySelector('#spListContainer') != null) {
+ this.domElement.querySelector('#spListContainer')!.innerHTML = html;
212
+ }
213
}
214
```
215
0 commit comments