Fixed episodes blacklist update in webui

pull/2126/head
morpheus65535 2 years ago committed by GitHub
parent e263927779
commit 2c313a40a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save