mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Check for clientSession before property (#13198)
This commit is contained in:
@@ -338,7 +338,7 @@ export class KernelsDropdown extends SelectBox {
|
|||||||
}
|
}
|
||||||
this.setOptions(kernels, index);
|
this.setOptions(kernels, index);
|
||||||
}
|
}
|
||||||
} else if (this.model.clientSession.isInErrorState) {
|
} else if (this.model.clientSession?.isInErrorState) {
|
||||||
kernels.unshift(noKernelName);
|
kernels.unshift(noKernelName);
|
||||||
this.setOptions(kernels, 0);
|
this.setOptions(kernels, 0);
|
||||||
}
|
}
|
||||||
@@ -402,7 +402,7 @@ export class AttachToDropdown extends SelectBox {
|
|||||||
let kernelDisplayName: string = this.getKernelDisplayName();
|
let kernelDisplayName: string = this.getKernelDisplayName();
|
||||||
if (kernelDisplayName) {
|
if (kernelDisplayName) {
|
||||||
this.loadAttachToDropdown(this.model, kernelDisplayName, showSelectConnection);
|
this.loadAttachToDropdown(this.model, kernelDisplayName, showSelectConnection);
|
||||||
} else if (this.model.clientSession.isInErrorState) {
|
} else if (this.model.clientSession?.isInErrorState) {
|
||||||
this.setOptions([localize('noContextAvailable', "None")], 0);
|
this.setOptions([localize('noContextAvailable', "None")], 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user