Skip to content

Commit

Permalink
added fallback to URLMatchingHints function - return empty react frag…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
afarbman committed Sep 27, 2020
1 parent f162c1d commit b1b6803
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/scenes/actions/ActionStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,9 @@ export class ActionStep extends Component {

URLMatchingHints = ({ step }) => {
return (
step?.url_matching &&
step.url_matching in URL_MATCHING_HINTS && (
(step?.url_matching && step.url_matching in URL_MATCHING_HINTS && (
<small style={{ display: 'block', marginTop: -12 }}>{URL_MATCHING_HINTS[step.url_matching]}</small>
)
)) || <></>
)
}

Expand Down

0 comments on commit b1b6803

Please sign in to comment.