diff --git a/src/models/Torrent.js b/src/models/Torrent.js index ee307c9f6b..97bcaa7f6f 100644 --- a/src/models/Torrent.js +++ b/src/models/Torrent.js @@ -19,7 +19,7 @@ export default class Torrent { this.savePath = data.save_path this.progress = Math.round(data.progress * 10000) / 100 this.ratio = Math.round(data.ratio * 100) / 100 - this.tags = data.tags.length > 0 ? data.tags.split(',') : null + this.tags = data.tags.length > 0 ? data.tags.split(', ').map(t => t.trim()) : null this.category = data.category this.tracker = data.tracker this.comment = data.comment