Fix formatting of netmd-mock.ts
This commit is contained in:
parent
e2a16030d0
commit
a2547dbe49
|
@ -165,7 +165,7 @@ class NetMDMockService implements NetMDService {
|
|||
title: null,
|
||||
fullWidthTitle: null,
|
||||
tracks: [],
|
||||
index: 0
|
||||
index: 0,
|
||||
};
|
||||
this._groups.unshift(ungroupedGroup);
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ class NetMDMockService implements NetMDService {
|
|||
for (let index of indexes) {
|
||||
this._groups = recomputeGroupsAfterTrackMove(this._getDisc(), index, -1).groups;
|
||||
this._tracks.splice(index, 1);
|
||||
this._groups.forEach(n => n.tracks = n.tracks.filter(n => this._tracks.includes(n)));
|
||||
this._groups.forEach(n => (n.tracks = n.tracks.filter(n => this._tracks.includes(n))));
|
||||
}
|
||||
this._updateTrackIndexes();
|
||||
}
|
||||
|
@ -228,14 +228,16 @@ class NetMDMockService implements NetMDService {
|
|||
}
|
||||
|
||||
async wipeDiscTitleInfo() {
|
||||
this._groups = [{
|
||||
this._groups = [
|
||||
{
|
||||
index: 0,
|
||||
title: null,
|
||||
fullWidthTitle: null,
|
||||
tracks: this._tracks
|
||||
}];
|
||||
this._discTitle = "";
|
||||
this._fullWidthDiscTitle = "";
|
||||
tracks: this._tracks,
|
||||
},
|
||||
];
|
||||
this._discTitle = '';
|
||||
this._fullWidthDiscTitle = '';
|
||||
}
|
||||
|
||||
async upload(
|
||||
|
|
Loading…
Reference in New Issue