Compare commits

..

No commits in common. "cc25b83b2e52e5bda582b4f775aaa883bf125322" and "06752ebcec9213b73d416f5ca628af282b589df9" have entirely different histories.

3 changed files with 5 additions and 7 deletions

View file

@ -242,9 +242,7 @@ class Albums extends Pages {
const item = { const item = {
...album.toJSON(), ...album.toJSON(),
released: album.released released: formatDate(album.released, "MM/dd/yyyy"),
? formatDate(album.released, "MM/dd/yyyy")
: null,
}; };
this.setPageContent("item", item); this.setPageContent("item", item);

View file

@ -175,10 +175,10 @@
let url = `/api/v1/albums?userId=${this.userId}&page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`; let url = `/api/v1/albums?userId=${this.userId}&page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`;
if ( this.artist ) { if ( this.artist ) {
url += `&artists_sort=${this.artist.replace('&', '%26')}`; url += `&artists_sort=${this.artist}`;
} }
if ( this.format ) { if ( this.format ) {
url += `&format=${this.format.replace('&', '%26')}`; url += `&format=${this.format}`;
} }
if ( this.year ) { if ( this.year ) {
url += `&year=${this.year}`; url += `&year=${this.year}`;

View file

@ -229,10 +229,10 @@
let url = `/api/v1/albums?page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`; let url = `/api/v1/albums?page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`;
if ( this.artist ) { if ( this.artist ) {
url += `&artists_sort=${this.artist.replace('&', '%26')}`; url += `&artists_sort=${this.artist}`;
} }
if ( this.format ) { if ( this.format ) {
url += `&format=${this.format.replace('&', '%26')}`; url += `&format=${this.format}`;
} }
if ( this.year ) { if ( this.year ) {
url += `&year=${this.year}`; url += `&year=${this.year}`;