fix double uri encoding

handled by router
This commit is contained in:
Thomas Amland 2020-08-11 18:21:34 +02:00
parent 363320b2d6
commit 2c4639f83e

View File

@ -51,7 +51,7 @@ export class API {
const response = await this.get('rest/getGenres', {}) const response = await this.get('rest/getGenres', {})
return response.genres.genre return response.genres.genre
.map((item: any) => ({ .map((item: any) => ({
id: encodeURIComponent(item.value), id: item.value,
name: item.value, name: item.value,
...item, ...item,
})) }))
@ -60,7 +60,7 @@ export class API {
async getGenreDetails(id: string) { async getGenreDetails(id: string) {
const params = { const params = {
genre: decodeURIComponent(id), genre: id,
count: 500, count: 500,
offset: 0, offset: 0,
} }