Skip to content

Commit

Permalink
update banned routes list in more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Apr 19, 2024
1 parent 1371ffe commit 0e4ba95
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 @@ -83,8 +83,8 @@ class AdvancedOptions extends Component {
componentDidUpdate(prevProps) {
const { routes } = this.props
// Once routes are available, map them to the route options format.
if (!isEmpty(routes) && isEmpty(prevProps.routes)) {
const routeOptions = Object.values(routes).map(this.routeToOption)
const routeOptions = Object.values(routes).map(this.routeToOption)
if (routeOptions.length !== this.state.routeOptions.length) {
this.setState({ routeOptions })
}
}
Expand Down

0 comments on commit 0e4ba95

Please sign in to comment.