fix: Torrent Detail modal with multiple tags shows only one tag selected #167

This commit is contained in:
Daan Wijns 2021-02-27 18:19:29 +01:00
parent 542b16f0dd
commit 1973b5dc52

View file

@ -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