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…
Reference in New Issue