Skip to content

Commit

Permalink
fix crash when applicableModeSettings is null
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-heppner-ibigroup committed Dec 6, 2024
1 parent 5caf0b8 commit 082c777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/form/call-taker/advanced-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class AdvancedOptions extends Component {
}}
>
{/* Show the first mode setting */}
{applicableModeSettings.length >= 1 && (
{applicableModeSettings?.length >= 1 && (
<ModeSettingRenderer
onChange={this._setCustomModeSetting}
setting={applicableModeSettings[0]}
Expand Down Expand Up @@ -264,7 +264,7 @@ class AdvancedOptions extends Component {
</Suspense>
<div style={{ paddingTop: '8px' }}>
{/* Show the remaining items after the first */}
{applicableModeSettings.length > 1 &&
{applicableModeSettings?.length > 1 &&
applicableModeSettings
.slice(1)
.map((ms) => (
Expand Down

0 comments on commit 082c777

Please sign in to comment.