mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00: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()) {
|
||||
return false;
|
||||
}
|
||||
const originalAutoPilotSettings = this.collection.offer().content.offerAutopilotSettings;
|
||||
const originalAutoPilotSettings = this.collection?.offer()?.content?.offerAutopilotSettings;
|
||||
if (!originalAutoPilotSettings) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user