web: fix sorting of renamed torrents by name (#1892)

Co-authored-by: Benedikt Morbach <benedikt.morbach@googlemail.com>
This commit is contained in:
Charles Kerr 2021-10-07 09:44:28 -05:00 committed by GitHub
parent 3b72a1feea
commit 959cbe2c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,12 @@ export class Torrent extends EventTarget {
changed |= this.setField(this.fields, key, value); changed |= this.setField(this.fields, key, value);
} }
break; break;
case 'name':
if (this.setField(this.fields, key, data[key])) {
this.fields.collatedName = '';
changed = true;
}
break;
default: default:
changed |= this.setField(this.fields, key, value); changed |= this.setField(this.fields, key, value);
} }