mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-28 04:17:31 +00:00
@@ -252,8 +252,8 @@ class BookIndex extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onSearchConfirmed = () => {
|
onSearchConfirmed = () => {
|
||||||
const selectedMovieIds = this.getSelectedIds();
|
const selectedBookIds = this.getSelectedIds();
|
||||||
const searchIds = this.state.isMovieEditorActive && selectedMovieIds.length > 0 ? selectedMovieIds : this.props.items.map((m) => m.id);
|
const searchIds = this.state.isEditorActive && selectedBookIds.length > 0 ? selectedBookIds : this.props.items.map((m) => m.id);
|
||||||
|
|
||||||
this.props.onSearchPress(searchIds);
|
this.props.onSearchPress(searchIds);
|
||||||
this.setState({ isConfirmSearchModalOpen: false });
|
this.setState({ isConfirmSearchModalOpen: false });
|
||||||
|
|||||||
Reference in New Issue
Block a user