mirror of
https://github.com/Readarr/Readarr
synced 2026-01-27 01:42:48 +01:00
Fixed: Deleting multiple books at once from author page
This commit is contained in:
parent
b3dd116d27
commit
493ce1b20c
1 changed files with 2 additions and 11 deletions
|
|
@ -64,17 +64,8 @@ class BookFileEditorTableContent extends Component {
|
|||
// Control
|
||||
|
||||
getSelectedIds = () => {
|
||||
const selectedIds = getSelectedIds(this.state.selectedState);
|
||||
|
||||
return selectedIds.reduce((acc, id) => {
|
||||
const matchingItem = this.props.items.find((item) => item.id === id);
|
||||
|
||||
if (matchingItem && !acc.includes(matchingItem.bookFileId)) {
|
||||
acc.push(matchingItem.bookFileId);
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
const ids = getSelectedIds(this.state.selectedState);
|
||||
return ids;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue