mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-21 22:05:38 -04:00
Fixed: Manage Episodes not showing whether language/quality meets cutoff
This commit is contained in:
@@ -148,30 +148,35 @@ export const actionHandlers = handleThunks({
|
||||
|
||||
dispatch(set({ section, isSaving: true }));
|
||||
|
||||
const data = {
|
||||
const requestData = {
|
||||
episodeFileIds
|
||||
};
|
||||
|
||||
if (language) {
|
||||
data.language = language;
|
||||
requestData.language = language;
|
||||
}
|
||||
|
||||
if (quality) {
|
||||
data.quality = quality;
|
||||
requestData.quality = quality;
|
||||
}
|
||||
|
||||
const promise = createAjaxRequest({
|
||||
url: '/episodeFile/editor',
|
||||
method: 'PUT',
|
||||
dataType: 'json',
|
||||
data: JSON.stringify(data)
|
||||
data: JSON.stringify(requestData)
|
||||
}).request;
|
||||
|
||||
promise.done(() => {
|
||||
promise.done((data) => {
|
||||
dispatch(batchActions([
|
||||
...episodeFileIds.map((id) => {
|
||||
const props = {};
|
||||
|
||||
const episodeFile = data.find((file) => file.id === id);
|
||||
|
||||
props.qualityCutoffNotMet = episodeFile.qualityCutoffNotMet;
|
||||
props.languageCutoffNotMet = episodeFile.languageCutoffNotMet;
|
||||
|
||||
if (language) {
|
||||
props.language = language;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user