1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-22 15:54:26 +00:00

Fixed episodes blacklist update in webui

This commit is contained in:
morpheus65535 2023-04-20 11:35:43 -04:00 committed by GitHub
parent e263927779
commit 2c313a40a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);
},
}
);