Skip to content

Commit

Permalink
fix(frontend): Fix sound with no tags causing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 15, 2023
1 parent d4aaac9 commit 97456ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/data/sounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const getSounds = async (force = false) => {
});

sounds = data.map((sound) => {
sound.tags = sound.expand.tags?.map((tag) => tag.name);
sound.tags = sound.expand?.tags?.map((tag) => tag.name);
delete sound.expand;
return new Sound(sound);
});
Expand Down

0 comments on commit 97456ad

Please sign in to comment.