mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-03 06:53:49 +01:00
Add null check when reading offerAutopilotSettings (#138)
This commit is contained in:
parent
95f1efc03f
commit
e28765d740
@ -344,7 +344,7 @@ export default class SettingsTab extends TabsBase implements ViewModels.WaitsFor
|
|||||||
if (!this.isAutoPilotSelected()) {
|
if (!this.isAutoPilotSelected()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const originalAutoPilotSettings = this.collection.offer().content.offerAutopilotSettings;
|
const originalAutoPilotSettings = this.collection?.offer()?.content?.offerAutopilotSettings;
|
||||||
if (!originalAutoPilotSettings) {
|
if (!originalAutoPilotSettings) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user