Browse Source

Add id to genre request to fix playing row check

master
jeffvli 3 years ago
parent
commit
8c57338a70
  1. 1
      src/api/api.ts

1
src/api/api.ts

@ -665,6 +665,7 @@ export const getGenres = async () => {
const { data } = await api.get(`/getGenres`);
return (data.genres.genre || []).map((entry: any, index: any) => ({
id: entry.value, // List view uses id to match the playing song so we need an arbitrary id here
...entry,
name: entry.value,
index,

Loading…
Cancel
Save