From 71a406f7da3fab900347c0de968f53e0a4b2b972 Mon Sep 17 00:00:00 2001 From: brokiem Date: Sun, 15 Jan 2023 19:44:42 +0800 Subject: [PATCH] Filter empty anime genres --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 5648cfc..0655daf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,6 +27,7 @@ const store = createStore({ }, setAnime(state, payload) { payload.synopsis = payload.synopsis.replaceAll('[Written by MAL Rewrite]', '').replace(/\n+$/, '').replaceAll('\n', '
') + payload.genres = payload.genres.filter(genre => genre) state.anime = payload;