Fixed: Index UI crash for movies without files

pull/8457/head
Qstick 2 years ago
parent 51a583b59b
commit ff1449c01e

@ -49,14 +49,10 @@ function MovieIndexProgressBar(props: MovieIndexProgressBarProps) {
movieStatus = 'Missing';
if (hasFile) {
const quality = movieFile.quality;
movieStatus = quality.quality.name;
movieStatus = movieFile?.quality?.quality.name ?? 'Downloaded';
}
} else if (hasFile) {
const quality = movieFile.quality;
movieStatus = quality.quality.name;
movieStatus = movieFile?.quality?.quality.name ?? 'Downloaded';
} else if (isAvailable && !hasFile) {
movieStatus = 'Missing';
} else {

Loading…
Cancel
Save