FIX: Incorrect sort order label appearing when it should not (#315)

This commit is contained in:
Keegan George 2023-11-27 12:27:22 -08:00 committed by GitHub
parent 775610b1c2
commit d493880c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -103,8 +103,7 @@ export default class SemanticSearch extends Component {
if (!this.searchEnabled) {
return;
}
if (this.searchPreferencesManager.sortOrder !== 0) {
if (this.searchPreferencesManager?.sortOrder !== undefined && this.searchPreferencesManager?.sortOrder !== 0) {
this.preventAISearch = true;
return;
} else {