fix date added sorting
This commit is contained in:
parent
e1b1dc3fec
commit
5099d41260
1 changed files with 2 additions and 4 deletions
|
@ -2388,10 +2388,8 @@ const app = new Vue({
|
||||||
aa = a.attributes.genreNames[0];
|
aa = a.attributes.genreNames[0];
|
||||||
bb = b.attributes.genreNames[0];
|
bb = b.attributes.genreNames[0];
|
||||||
} else if (prefs.sort == "dateAdded") {
|
} else if (prefs.sort == "dateAdded") {
|
||||||
let albumida = a.relationships?.albums?.data[0]?.id;
|
aa = a.relationships?.albums?.data[0]?.attributes?.dateAdded;
|
||||||
let albumidb = b.relationships?.albums?.data[0]?.id;
|
bb = b.relationships?.albums?.data[0]?.attributes?.dateAdded;
|
||||||
aa = startTime - new Date(albumAdded[albumida] ?? "1970-01-01T00:01:01Z").getTime();
|
|
||||||
bb = startTime - new Date(albumAdded[albumidb] ?? "1970-01-01T00:01:01Z").getTime();
|
|
||||||
}
|
}
|
||||||
if (aa == null) {
|
if (aa == null) {
|
||||||
aa = "";
|
aa = "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue