mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 06:05:15 +00:00
Fix deprecated lodash pluck call
This commit is contained in:
@@ -138,7 +138,7 @@ export default class AddTorrents extends React.Component {
|
||||
|
||||
handleAddTorrents() {
|
||||
this.setState({isAddingTorrents: true});
|
||||
let torrentUrls = _.pluck(this.state.urlTextboxes, 'value');
|
||||
let torrentUrls = _.map(this.state.urlTextboxes, 'value');
|
||||
TorrentActions.addTorrents(torrentUrls, this.state.destination);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user