summaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-04-20 11:35:43 -0400
committerGitHub <[email protected]>2023-04-20 11:35:43 -0400
commit2c313a40a558069c8cf4a3dc6efa80e4bec50f43 (patch)
tree741ea1e0705bca82cf82b0f2a663df5a6bf5bcbb /frontend
parente263927779365a641a9018016763ebf05c769fdd (diff)
downloadbazarr-2c313a40a558069c8cf4a3dc6efa80e4bec50f43.tar.gz
bazarr-2c313a40a558069c8cf4a3dc6efa80e4bec50f43.zip
Fixed episodes blacklist update in webui
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/apis/hooks/episodes.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/apis/hooks/episodes.ts b/frontend/src/apis/hooks/episodes.ts
index 0dd473c4f..b9e78be87 100644
--- a/frontend/src/apis/hooks/episodes.ts
+++ b/frontend/src/apis/hooks/episodes.ts
@@ -77,7 +77,7 @@ export function useEpisodeAddBlacklist() {
},
{
onSuccess: (_, { seriesId, episodeId }) => {
- client.invalidateQueries([QueryKeys.Series, QueryKeys.Blacklist]);
+ client.invalidateQueries([QueryKeys.Series, QueryKeys.Episodes, QueryKeys.Blacklist]);
client.invalidateQueries([QueryKeys.Series, seriesId]);
},
}
@@ -92,7 +92,7 @@ export function useEpisodeDeleteBlacklist() {
api.episodes.deleteBlacklist(param.all, param.form),
{
onSuccess: (_, param) => {
- client.invalidateQueries([QueryKeys.Series, QueryKeys.Blacklist]);
+ client.invalidateQueries([QueryKeys.Series, QueryKeys.Episodes, QueryKeys.Blacklist]);
},
}
);