Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-2213 bugfix: Broken Next button #678

Look for search engine name using ds-appropriate array method

  • Loading branch information
wlycdgr committed Feb 4, 2021
commit ae263d6b65b560b5af0e5f61416d4a386d97d7a8
@@ -162,7 +162,11 @@ class ChooseDefaultSearchView extends Component {

setDefaultSearch(chosenSearchName);

const chosenSearchNameIndex = searchSetupNumbers.indexOf(chosenSearchName);
const chosenSearchNameIndex = searchSetupNumbers.findIndex(el => el.name === chosenSearchName);

console.log('chosenSearchName:', chosenSearchName);
console.log('chosenSearchNameIndex:', chosenSearchNameIndex);

const dawn_setup_number = (chosenSearchNameIndex === -1)
? DAWN_SETUP_NUMBER_FOR_UNLISTED_OR_RENAMED_SEARCH
: searchSetupNumbers[chosenSearchNameIndex].dawn_setup_number;
ProTip! Use n and p to navigate between commits in a pull request.