Skip to content

Commit

Permalink
YIM: Fix mosaics fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyDo committed Dec 19, 2024
1 parent 78a6f53 commit 0a3eef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/js/src/user/year-in-music/2024/YearInMusic2024.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,13 @@ export default class YearInMusic extends React.Component<
const response = await fetch(
"https://static.metabrainz.org/LB/year-in-music/2024/2024_mosaics.json"
);
const mosaics = response.json();
const mosaics = await response.json();

this.setState({
mosaics: (mosaics as unknown) as MosaicImageDefinition[],
});
} catch (err) {
// eslint-disable-next-line no-console
console.error(err);
}
};
Expand Down

0 comments on commit 0a3eef1

Please sign in to comment.