Fixed: Search selected searches all

Fixes #2155
This commit is contained in:
Qstick
2023-02-02 21:35:01 -06:00
parent 3825ecd393
commit 01b4ee1a02

View File

@@ -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 });