From 01b4ee1a02702f2bca4f293fefd755a8d393b56e Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 2 Feb 2023 21:35:01 -0600 Subject: [PATCH] Fixed: Search selected searches all Fixes #2155 --- frontend/src/Book/Index/BookIndex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Book/Index/BookIndex.js b/frontend/src/Book/Index/BookIndex.js index 9e9023bf8..eb8ff7d73 100644 --- a/frontend/src/Book/Index/BookIndex.js +++ b/frontend/src/Book/Index/BookIndex.js @@ -252,8 +252,8 @@ class BookIndex extends Component { }; onSearchConfirmed = () => { - const selectedMovieIds = this.getSelectedIds(); - const searchIds = this.state.isMovieEditorActive && selectedMovieIds.length > 0 ? selectedMovieIds : this.props.items.map((m) => m.id); + const selectedBookIds = this.getSelectedIds(); + const searchIds = this.state.isEditorActive && selectedBookIds.length > 0 ? selectedBookIds : this.props.items.map((m) => m.id); this.props.onSearchPress(searchIds); this.setState({ isConfirmSearchModalOpen: false });