Skip to content

Instantly share code, notes, and snippets.

@jimarnold
Created October 27, 2021 19:13
Show Gist options
  • Save jimarnold/2988dd7ced2af00ce6baf02003a1ad38 to your computer and use it in GitHub Desktop.
Save jimarnold/2988dd7ced2af00ce6baf02003a1ad38 to your computer and use it in GitHub Desktop.
diff --git a/src/views/search/SearchForm.js b/src/views/search/SearchForm.js
index 112b5dde9..bbbaf68ad 100644
--- a/src/views/search/SearchForm.js
+++ b/src/views/search/SearchForm.js
@@ -80,7 +80,7 @@ export class SearchForm extends Component {
: [];
}
- if (!this.props.includeMigrated && this.props.taxonomy !== null) {
+ if (this.props.pageType === 'taxonomy' && !this.props.includeMigrated && this.props.taxonomy !== null) {
items = this.filterMigrated(items);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment