Skip to content

Commit

Permalink
LibView start queryLibraryIndexState
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed Jun 13, 2024
1 parent 8bd6aab commit 4a41a9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/search/ai-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export default class AISearch extends Component {
document.addEventListener('compositionstart', this.onCompositionStart);
document.addEventListener('compositionend', this.onCompositionEnd);
document.addEventListener('click', this.handleOutsideClick);
this.queryLibraryIndexState();
if (this.props.isLibView) {
this.queryLibraryIndexState();
}
}

queryLibraryIndexState() {
Expand Down

0 comments on commit 4a41a9f

Please sign in to comment.