Skip to content

Commit

Permalink
MMT-3926: The check for empty is not needed anymore since I'm clearin…
Browse files Browse the repository at this point in the history
…g out the text after picking a keyword.
  • Loading branch information
Christopher Gokey committed Nov 26, 2024
1 parent c50f8eb commit f35a0d4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions static/src/js/components/KeywordPicker/KeywordPicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,6 @@ const KeywordPicker = ({
// When a item from the search Typeahead is selected, this will capture that selection and add it
// formData.
const handleSearch = (text) => {
if (text.length === 0) {
return
}

const split = text.toString().split('>')
const filter = fullPath.filter((path) => path.indexOf(split[split.length - 1]) !== -1)
const filterArr = filter[0].toString().split('>').slice(1)
Expand Down

0 comments on commit f35a0d4

Please sign in to comment.