Compare commits

..

No commits in common. "fe3bdafb637651630ba3a53e456a3659738a297b" and "12ca71e6434c492c415b7c6907a9625f620a9026" 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}`;