Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Fix overzealous switiching of includes to indexOf
Browse files Browse the repository at this point in the history
# Oops :P
  • Loading branch information
jsharkey13 committed Dec 19, 2017
1 parent 5866a4d commit ebbd160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/app/controllers/SearchControllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ define([], function() {

$scope.triggerSearch = function() {
$rootScope.globalFlags.siteSearchOpen = false;
if($state.indexOf('searchResults') == -1) {
if(!$state.includes('searchResults')) {
$state.go('searchResults', {query: $scope.models.query, types: $scope.models.typesToInclude});
}
}
Expand Down

0 comments on commit ebbd160

Please sign in to comment.