case after use settings to default and open info on torrent
crash with "Cannot read properties of undefined (reading 'length')"
This commit is contained in:
Салдин Владимир
2022-07-06 17:34:27 +03:00
committed by GitHub
parent 89e292f041
commit b3310adbd9

View File

@@ -26,7 +26,7 @@ const Table = memo(
const fileHasResolutionText = !!playableFileList?.find(({ path }) => ptt.parse(path).resolution)
// if files in list is more then 1 and no season text detected by ptt.parse, show full name
const shouldDisplayFullFileName = playableFileList.length > 1 && !fileHasEpisodeText
const shouldDisplayFullFileName = playableFileList?.length > 1 && !fileHasEpisodeText
const isVlcUsed = JSON.parse(localStorage.getItem('isVlcUsed')) ?? true