Fix missing null ref check causing extension issues (#21974)

This commit is contained in:
Cheena Malhotra
2023-02-17 09:45:23 -08:00
committed by GitHub
parent c5fc37c373
commit 66053f5152

View File

@@ -309,7 +309,7 @@ export class ConnectionWidget extends lifecycle.Disposable {
*/ */
protected registerOnSelectionChangeEvents(): void { protected registerOnSelectionChangeEvents(): void {
//Register on selection change event for custom options //Register on selection change event for custom options
this._customOptionWidgets.forEach((widget, i) => { this._customOptionWidgets?.forEach((widget, i) => {
if (widget instanceof SelectBox) { if (widget instanceof SelectBox) {
this._registerSelectionChangeEvents([this._customOptionWidgets], this._customOptions[i], widget); this._registerSelectionChangeEvents([this._customOptionWidgets], this._customOptions[i], widget);
} }