Skip to content

Commit

Permalink
Filter empty anime genres
Browse files Browse the repository at this point in the history
  • Loading branch information
brokiem committed Jan 15, 2023
1 parent 128ceba commit 71a406f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const store = createStore({
},
setAnime(state, payload) {
payload.synopsis = payload.synopsis.replaceAll('[Written by MAL Rewrite]', '').replace(/\n+$/, '').replaceAll('\n', '<br>')
payload.genres = payload.genres.filter(genre => genre)

state.anime = payload;

Expand Down

0 comments on commit 71a406f

Please sign in to comment.