mirror of https://github.com/morpheus65535/bazarr
FIx a crash when opening the movie view with some missing subtitles
This commit is contained in:
parent
a2fc1d73dd
commit
6eb14a2754
|
@ -102,10 +102,10 @@ const Table: FunctionComponent<Props> = ({ movie, profile }) => {
|
|||
);
|
||||
|
||||
const data: Subtitle[] = useMemo(() => {
|
||||
const missing = movie.missing_subtitles.map((item) => {
|
||||
item.path = missingText;
|
||||
return item;
|
||||
});
|
||||
const missing = movie.missing_subtitles.map((item) => ({
|
||||
...item,
|
||||
path: missingText
|
||||
}));
|
||||
|
||||
let raw_subtitles = movie.subtitles;
|
||||
if (onlyDesired) {
|
||||
|
|
Loading…
Reference in New Issue